mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:27:35 +00:00
Revert "Userland: Invoke tzset in apps that care about time zones"
This reverts most of commit ede5c9548e
.
The one change not reverted is ClockWidget.h, so that the taskbar clock
can continue to notice time zone changes.
This commit is contained in:
parent
6838333f76
commit
8599ee3049
10 changed files with 0 additions and 28 deletions
|
@ -14,7 +14,6 @@
|
|||
#include <LibGUI/Menubar.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <time.h>
|
||||
|
||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
|
@ -25,8 +24,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::unveil("/res", "r"));
|
||||
TRY(Core::System::unveil(nullptr, nullptr));
|
||||
|
||||
tzset();
|
||||
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-analog-clock"));
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title(Core::DateTime::now().to_string("%Y-%m-%d"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue