Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
toras9000 opened this issue Jun 10, 2023 · 1 comment
Labels
Milestone

Comments

@toras9000
Copy link

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

@ssddanbrown
Copy link
Member

Thanks for raising this @toras9000.
I've just addressed this in 1e220c4, which will be part of the next feature release.

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

No branches or pull requests

2 participants