From c47ccdc13b4558a1ba268736b07dedd89e343868 Mon Sep 17 00:00:00 2001 From: Stefan Pranger Date: Thu, 23 Dec 2021 22:31:39 +0100 Subject: [PATCH] set timezone on startup --- calendar-daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar-daemon.cpp b/calendar-daemon.cpp index 18523d2..b2a5c52 100644 --- a/calendar-daemon.cpp +++ b/calendar-daemon.cpp @@ -107,7 +107,7 @@ int main(void) // Daemon-specific intialization should go here - + setenv("TZ", "/usr/share/zoneinfo/Europe/Vienna", 1); // POSIX-specific std::string calendar = "dummy"; std::string directory = "/home/stefan/.local/share/khal/calendars/" + calendar + "/"; sql::Database* db = init_database(calendar);