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

Issues with time zone conversion #187

Closed
psrpinto opened this issue Mar 22, 2024 · 2 comments
Closed

Issues with time zone conversion #187

psrpinto opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@psrpinto
Copy link
Member

psrpinto commented Mar 22, 2024

@akirk said:

When creating an event, the default time seems to be "now" in UTC. If the user is for example in UTC+1, the time is already in the past.

It's not too bad since you are supposed to change the dates anyway but could we also just leave the date fields empty?

We should also do a review of the whole flow (user time -> utc -> database -> user time) to make sure time zones are being handled correctly, I'm not confident there are no issues there.

315996708-0c538979-030d-4057-a571-b104496dc21a

@psrpinto psrpinto added the bug Something isn't working label Mar 22, 2024
@psrpinto psrpinto changed the title Use user's timezone when setting default event times Issues with time zone conversion Mar 22, 2024
@psrpinto
Copy link
Member Author

@amieiro said:

We are having some problems with the timezone conversion. Currently, I am reviewing some problems I found today in trunk.

I have created an event for July:

  • Starts: 2024-07-01 00:01
  • Ends: 2024-08-31 23:59
  • Timezone: Europe/Madrid (CEST in July, UTC+2)

screencapture-glotpress-test-glotpress-events-new-2024-03-22-12_46_48

The information is stored correctly in the database

image

But when I try to see the event, it is making a bad conversion:

image

@psrpinto
Copy link
Member Author

I tested this and this issue is now fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant