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

Save and display timezone in the date/date-time field in posts #4162

Open
Angamanga opened this issue Nov 12, 2020 · 0 comments
Open

Save and display timezone in the date/date-time field in posts #4162

Angamanga opened this issue Nov 12, 2020 · 0 comments

Comments

@Angamanga
Copy link
Contributor

Angamanga commented Nov 12, 2020

Background

The date and date-time fields information in posts are converted and saved as a date-time field without any information about the timezone it was added in. This means that if another timezone than UTC was used when adding the post, the time when displaying the post will be confusing to the user.

Expected behaviour/TODO

  • Continue saving the information in UTC but add a column in the database with the timezone information
  • Return timezone information when requesting the post_datetime field
  • Display the time in posts adjusted to the timezone-settings in the users computer
  • Add a toggle in the post to display the time in the timezone that was used when adding the post
  • Clearly show what timezone times are displayed in.
  • Clearly show if we lack the original timezone (for example for posts added before this change)

Aha! Link: https://ushahiditeam.aha.io/features/PROD-905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Bug packs
Date and Time
Development

No branches or pull requests

2 participants