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

time conversion between time zones #2340

Merged
merged 2 commits into from
Jul 24, 2023
Merged

Conversation

LukashonakV
Copy link
Contributor

Hi @Alexays , this PR should fix

  1. Calendar shows wrong week numbers #2331
  2. probably (Calendar tooltip renders invalid month on first scroll, and highlights invalid day in year mode #2254) . This need to check and ask for issue author to provide conclusion

The problem was here: when calendar used to print information through fmt::format it used sys_days function which doesn't care about timezones and calculates date time in UTC.
For now: the whole clock is moved to zoned logic. Even user doesn't configure his local timezone, system time zone will be used to provide info about date, time, calendar. When user configures array of timezones and switches between each other calendar will also been recalculated with applying of the picked timezone.

Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
src/modules/clock.cpp Outdated Show resolved Hide resolved
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
@Alexays
Copy link
Owner

Alexays commented Jul 24, 2023

Thanks!

@m-bdf
Copy link
Contributor

m-bdf commented Dec 21, 2023

This reverts #2296, is this intentional?

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.

3 participants