From 20c25334cde278e9c7d885abc41fcbdc19a3ca19 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 27 Dec 2012 12:15:37 +0400 Subject: [PATCH] system/setting_helpers.cpp: fix timezone change --- src/system/setting_helpers.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/setting_helpers.cpp b/src/system/setting_helpers.cpp index d362132c5..bd11537d6 100644 --- a/src/system/setting_helpers.cpp +++ b/src/system/setting_helpers.cpp @@ -446,8 +446,11 @@ bool CTZChangeNotifier::changeNotify(const neutrino_locale_t, void * Data) std::string cmd = "cp /usr/share/zoneinfo/" + zone + " /etc/localtime"; printf("exec %s\n", cmd.c_str()); my_system("/bin/sh", "-c", cmd.c_str()); +#if 0 cmd = ":" + zone; setenv("TZ", cmd.c_str(), 1); +#endif + tzset(); } return false;