Skip to content

The format of the date and time returned by the Image Gallery API is different from other APIsΒ #4294

Description

@toras9000

Describe the Bug

In the response returned by the Image Gallery API, the format of the date/time field seems to be different from other APIs.
While other APIs return the date and time in UTC format, image-gallery create/read/update returns the date and time in local date and time format.
This is probably not the intended behavior.

Example:

  • Other APIs
    • "created_at":"2023-06-10T00:48:20.000000Z"
  • Image Gallery API
    • "created_at":"2023-06-10 00:48:20"

Steps to Reproduce

Always occurs on requests to the create/read/update endpoints of image-gallery.

Expected Behaviour

Expect the image-gallery API response to return the date and time in UTC format.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v23.05.02

PHP Version

No response

Hosting Environment

Docker image, lscr.io/linuxserver/bookstack:version-v23.05.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions