avoid converting to local_time when converting to zoned_time afterwards

This commit is contained in:
Lukas Hannen 2023-11-06 01:28:48 +01:00
parent 48ec834ec9
commit aa1f8a428b
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));