Skip to content

Conversation

@Komyyy
Copy link
Contributor

@Komyyy Komyyy commented Feb 3, 2025

depends on #1363

Light Dark
light dark

@tannal
Copy link

tannal commented Feb 3, 2025

It seems that you are using full database now.
The 10y database doesn't contain time zone abbreviations.
And user.timezone can be CET or other abbreviations.
If you are going to use the 10y database for better performance, you might need some kind of mapping.

See https://github.com/zulip/zulip/blob/42bc59b8027a074b31054f5fc0f1e6440fdd5252/zerver/lib/timezone.py#L22-L24

Also from https://pub.dev/packages/timezone#location.

We don't provide any functions to get locations by time zone abbreviations because of the ambiguities.

@Komyyy
Copy link
Contributor Author

Komyyy commented Feb 4, 2025

@tannal I see, thank you!

@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch 3 times, most recently from 93a116d to 9986643 Compare February 17, 2025 14:08
@Komyyy Komyyy closed this Feb 18, 2025
@Komyyy Komyyy deleted the Komyyy/user_local_time branch February 18, 2025 04:03
@Komyyy Komyyy restored the Komyyy/user_local_time branch February 18, 2025 04:03
@Komyyy Komyyy reopened this Feb 18, 2025
@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch 5 times, most recently from 90f5230 to 62aa9b5 Compare June 2, 2025 08:49
@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch from 62aa9b5 to bcf7f3c Compare June 30, 2025 08:33
@Komyyy Komyyy marked this pull request as ready for review June 30, 2025 08:55
@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch from bcf7f3c to 14bfab3 Compare July 1, 2025 08:40
@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch from 14bfab3 to f29e2e8 Compare July 1, 2025 08:46
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.

2 participants