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

profile: Display user's local time #1318

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Komyyy
Copy link

@Komyyy Komyyy commented Feb 3, 2025

depends on #1363

@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
Author

Komyyy commented Feb 4, 2025

@tannal I see, thank you!

@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch from 2a87acd to 93a116d Compare February 17, 2025 10:58
@Komyyy Komyyy force-pushed the Komyyy/user_local_time branch 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
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