mirror of
https://github.com/troglobit/finit.git
synced 2026-11-06 15:51:03 +00: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:
1 file changed
+6
-1
+6
-1
@@ -29,7 +29,7 @@
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#include <lite/lite.h>
|
#include <lite/lite.h>
|
||||||
#include <lite/queue.h> /* BSD sys/queue.h API */
|
#include <lite/queue.h> /* BSD sys/queue.h API */
|
||||||
#include <sys/time.h>
|
#include <time.h>
|
||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
|
|
||||||
#include "finit.h"
|
#include "finit.h"
|
||||||
@@ -646,6 +646,11 @@ int conf_reload(void)
|
|||||||
size_t i;
|
size_t i;
|
||||||
glob_t gl;
|
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 */
|
/* Mark and sweep */
|
||||||
svc_mark_dynamic();
|
svc_mark_dynamic();
|
||||||
tty_mark();
|
tty_mark();
|
||||||
|
|||||||
Reference in new issue
Block a user