summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-28 07:38:10 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-28 15:13:35 +0000
commit8599ee30490b8fe96c0972eff7ad621cd1a770dd (patch)
tree47d01880cec83e6d664fd2595883221c59e5e98b /Userland/Applications
parent6838333f764a54bae6fe48a1048f8dc65347f8cb (diff)
downloadserenity-8599ee30490b8fe96c0972eff7ad621cd1a770dd.zip
Revert "Userland: Invoke tzset in apps that care about time zones"
This reverts most of commit ede5c9548e55d8216dba21ed431b9e53d085a248. The one change not reverted is ClockWidget.h, so that the taskbar clock can continue to notice time zone changes.
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/AnalogClock/main.cpp3
-rw-r--r--Userland/Applications/Browser/main.cpp3
-rw-r--r--Userland/Applications/Calendar/main.cpp3
3 files changed, 0 insertions, 9 deletions
diff --git a/Userland/Applications/AnalogClock/main.cpp b/Userland/Applications/AnalogClock/main.cpp
index 426d84a5f6..719103410e 100644
--- a/Userland/Applications/AnalogClock/main.cpp
+++ b/Userland/Applications/AnalogClock/main.cpp
@@ -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"));
diff --git a/Userland/Applications/Browser/main.cpp b/Userland/Applications/Browser/main.cpp
index cbba6d7552..413bb68059 100644
--- a/Userland/Applications/Browser/main.cpp
+++ b/Userland/Applications/Browser/main.cpp
@@ -21,7 +21,6 @@
#include <LibGUI/Icon.h>
#include <LibGUI/TabWidget.h>
#include <LibMain/Main.h>
-#include <time.h>
#include <unistd.h>
namespace Browser {
@@ -83,8 +82,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil("/tmp/portal/request", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));
- tzset();
-
auto app_icon = GUI::Icon::default_icon("app-browser");
Browser::g_home_url = Config::read_string("Browser", "Preferences", "Home", "file:///res/html/misc/welcome.html");
diff --git a/Userland/Applications/Calendar/main.cpp b/Userland/Applications/Calendar/main.cpp
index 3270a8ac4f..57aceb613e 100644
--- a/Userland/Applications/Calendar/main.cpp
+++ b/Userland/Applications/Calendar/main.cpp
@@ -19,7 +19,6 @@
#include <LibGUI/Toolbar.h>
#include <LibGUI/Window.h>
#include <LibMain/Main.h>
-#include <time.h>
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
@@ -32,8 +31,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-calendar"));
auto window = TRY(GUI::Window::try_create());
window->set_title("Calendar");