mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
system/setting_helpers.cpp: fix timezone change
Origin commit data
------------------
Commit: 20c25334cd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-12-27 (Thu, 27 Dec 2012)
This commit is contained in:
@@ -446,8 +446,11 @@ bool CTZChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
|
|||||||
std::string cmd = "cp /usr/share/zoneinfo/" + zone + " /etc/localtime";
|
std::string cmd = "cp /usr/share/zoneinfo/" + zone + " /etc/localtime";
|
||||||
printf("exec %s\n", cmd.c_str());
|
printf("exec %s\n", cmd.c_str());
|
||||||
my_system("/bin/sh", "-c", cmd.c_str());
|
my_system("/bin/sh", "-c", cmd.c_str());
|
||||||
|
#if 0
|
||||||
cmd = ":" + zone;
|
cmd = ":" + zone;
|
||||||
setenv("TZ", cmd.c_str(), 1);
|
setenv("TZ", cmd.c_str(), 1);
|
||||||
|
#endif
|
||||||
|
tzset();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user