mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #1394 from nullobsi/patch-1
fix: Use locale when formatting clock
This commit is contained in:
commit
d575646c2d
@ -99,7 +99,7 @@ auto waybar::modules::Clock::update() -> void {
|
||||
// As date dep is not fully compatible, prefer fmt
|
||||
tzset();
|
||||
auto localtime = fmt::localtime(std::chrono::system_clock::to_time_t(now));
|
||||
text = fmt::format(format_, localtime);
|
||||
text = fmt::format(locale_, format_, localtime);
|
||||
} else {
|
||||
text = fmt::format(format_, wtime);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user