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

Mobile: Store all dates in the database in UTC #2446

Closed
palisadoes opened this issue Mar 26, 2024 · 4 comments
Closed

Mobile: Store all dates in the database in UTC #2446

palisadoes opened this issue Mar 26, 2024 · 4 comments
Assignees

Comments

@palisadoes
Copy link
Contributor

palisadoes commented Mar 26, 2024

Is your feature request related to a problem? Please describe.

The Talawa applications assume that the:

  1. user and organization are in the same timezone
  2. API server and the organization are in the same timezone

This will create confusion when an organization’s stakeholders and its service providers are geographically dispersed.

For example someone someone in the US state of New Mexico creating and event in neighboring Texas will have concerns. There are some cities in the USA like Minneapolis and Kansas City that straddle timezones.

Describe the solution you'd like

The client must:

  1. Only update the database with date values in UTC. This means you will have to use the local timezone of the client as the basis for converting database times to UTC.
  2. Convert dates read from the database to the local timezone of the client for presentation to the end user

There must be a date data conversion function that is used to make this consistent.

Describe alternatives you've considered

  • N/A

Approach to be followed (optional)

  • N/A

Additional context

Related issues:

  1. Admin - Set Organization Timezone Feature talawa-admin#1800
  2. API - Set Organization Timezone Feature talawa-api#2096
  3. Admin: Store all dates in the database in UTC talawa-admin#1813
  4. Mobile: Store all dates in the database in UTC #2446

Potential internship candidates

@ArinNigam
Copy link

I would like to work on this issue

@dhanagopu dhanagopu removed the unapproved Unapproved, needs to be triaged label Mar 30, 2024
@ArinNigam
Copy link

I have my various evaluatives planned for the next week in my college. So won't be able to work on the following issue till the next week. I am unassigning myself if anyone else want to take up this issue they can go ahead.

@ArinNigam ArinNigam removed their assignment Apr 6, 2024
@Azad99-9
Copy link

I would like to work on this please assign me @Cioppolo14

@palisadoes
Copy link
Contributor Author

@palisadoes palisadoes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants