mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
Userland: Invoke tzset in applications that care about time zones
In most applications, we invoke tzset once at startup for now. Most of these are short lived and don't need to know about time zone changes. The exception is the ClockWidget in the taskbar. Here, we invoke tzset each time we update the system time. This way, any time zone changes can take effect immediately.
This commit is contained in:
parent
010ec36d20
commit
ede5c9548e
11 changed files with 33 additions and 1 deletions
|
@ -30,7 +30,11 @@ private:
|
|||
virtual void paint_event(GUI::PaintEvent&) override;
|
||||
virtual void mousedown_event(GUI::MouseEvent&) override;
|
||||
|
||||
void tick_clock() { update(); }
|
||||
void tick_clock()
|
||||
{
|
||||
tzset();
|
||||
update();
|
||||
}
|
||||
|
||||
void open();
|
||||
void close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue