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

fix: Add timezone info to timestamp columns (M2-6932) #1382

Draft
wants to merge 1 commit into
base: feature/multiinformant-metapod
Choose a base branch
from

Conversation

sultanofcardio
Copy link
Contributor

@sultanofcardio sultanofcardio commented Jun 5, 2024

📝 Description

🔗 Jira Ticket M2-6932

This PR adds time zone information to the various datetime fields in the database. I noticed this was missing while validating the implementation of M2 6459 in the admin preview environment.

I've accounted for the arbitrary server when handling the columns in the two answers tables (answers and answers_items).

🪤 Peer Testing

Go to https://localhost:8000/docs#/Applets/applet_list_applets_get and try it out. The createdAt and updatedAt fields should include the timezone offset +00:00 to indicate UTC

image

✏️ Notes

There are some failing tests that need to be updated to account for these changes

I also explored a runtime version of this fix at feature/M2-6459-context-menu-date-tz-runtime with a smaller change set, but I thought this was the better approach

@sultanofcardio sultanofcardio self-assigned this Jun 5, 2024
@sultanofcardio sultanofcardio force-pushed the feature/M2-6459-context-menu-date-tz branch from 25f3851 to d5ffdf5 Compare June 5, 2024 16:46
@sultanofcardio sultanofcardio changed the title fix: Add timezone info to timestamp columns fix: Add timezone info to timestamp columns (M2-6932) Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant