Merge pull request #2643 from qbe/bugfix-dst-ambiguous-hour-err

This commit is contained in:
Alexis Rouillard 2023-11-06 08:51:26 +01:00 committed by GitHub
commit 7d7a047fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ auto waybar::modules::Clock::update() -> void {
// Define shift local time
const auto shiftedNow{date::make_zoned(
tz, date::local_days(shiftedDay) +
(now.get_local_time() - date::floor<date::days>(now.get_local_time())))};
(now.get_sys_time() - date::floor<date::days>(now.get_sys_time())))};
label_.set_markup(fmt::format(locale_, fmt::runtime(format_), now));