-
Notifications
You must be signed in to change notification settings - Fork 492
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
[Spike - API] Ensure all dates are UTC #9979
Comments
2023/10/10: Sized at 3 based on comments during resizing meeting. |
Ran this query in the db, which returned all columns with a timestamp:
ignoring all system tables, the following results indicate that all our timestamps are saved without a timezone:
|
Another data point to see hwo API is working (also need to see if we have an API for harvesting clients above). Added a dataverse, what I'm getting from database is: API returns UTC for sure: |
Another data point, harvesting data API, returns not UTC:
|
Looking at JsonPrinter for harvesting all we do is toString(): for dataveres createdate, we call a util method: and the Util method there:
and:
|
As discussed in Slack, I moved this to "Waiting" status. A decision needs to be made about what to do next, if anything. |
2024/03/13
|
Overview of the Feature Request
This spike was triggered by a discussion of how to present dates in the SPA. We would like all dates being returned from the API to be UTC. The UI can convert those dates to the user's local timezone. Part of what is to be researched is how the dates are stored in Postgres, because that will affect the logic of APIs that handle dates. The current assumption is that all dates are stored as UTC, but we want to confirm that.
What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)
API User
What inspired the request?
Logic for displaying dates in the SPA
What existing behavior do you want changed?
Want to ensure all dates are returned as UTC
Any brand new behavior do you want to add to Dataverse?
Any open or closed issues related to this feature request?
The text was updated successfully, but these errors were encountered: