use e_util env functions in time module

ref T4648
This commit is contained in:
Mike Blumenkrantz 2017-07-21 16:20:04 -04:00
parent 213618b762
commit 7a020fbcb6
1 changed files with 3 additions and 3 deletions

View File

@ -22,14 +22,14 @@ static Ecore_Timer *update_today = NULL;
if (tzenv) \
strncpy(prevtz, tzenv, sizeof(prevtz) - 1); \
if (inst->cfg->timezone) \
setenv("TZ", inst->cfg->timezone, 1); \
e_util_env_set("TZ", inst->cfg->timezone); \
tzset()
#define TZUNSET() \
if (prevtz[0]) \
setenv("TZ", prevtz, 1); \
e_util_env_set("TZ", prevtz); \
else \
unsetenv("TZ"); \
e_util_env_set("TZ", NULL); \
tzset()
static void