mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Merge pull request #152 from troglobit/fix#139-set-system-timezone
Fix #139: System timezone changes does not 'take' in Finit
This commit is contained in:
+6
-1
@@ -29,7 +29,7 @@
|
||||
#include <sys/resource.h>
|
||||
#include <lite/lite.h>
|
||||
#include <lite/queue.h> /* BSD sys/queue.h API */
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#include <glob.h>
|
||||
|
||||
#include "finit.h"
|
||||
@@ -646,6 +646,11 @@ int conf_reload(void)
|
||||
size_t i;
|
||||
glob_t gl;
|
||||
|
||||
/* Set time according to current time zone */
|
||||
tzset();
|
||||
_d("Set time daylight: %d timezone: %ld tzname: %s %s",
|
||||
daylight, timezone, tzname[0], tzname[1]);
|
||||
|
||||
/* Mark and sweep */
|
||||
svc_mark_dynamic();
|
||||
tty_mark();
|
||||
|
||||
Reference in New Issue
Block a user