summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'time.c')
-rw-r--r--time.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/time.c b/time.c
index fe1d431b..85b98d0a 100644
--- a/time.c
+++ b/time.c
@@ -341,24 +341,24 @@ val time_parse(val format, val string)
static time_t timegm_hack(struct tm *tm)
{
- time_t ret;
- char *tz;
+ time_t ret;
+ char *tz;
- tz = getenv("TZ");
- setenv("TZ", "UTC", 1);
+ tz = getenv("TZ");
+ setenv("TZ", "UTC", 1);
#if HAVE_TZSET
- tzset();
+ tzset();
#endif
- ret = mktime(tm);
- if (tz)
- setenv("TZ", tz, 1);
- else
- unsetenv("TZ");
+ ret = mktime(tm);
+ if (tz)
+ setenv("TZ", tz, 1);
+ else
+ unsetenv("TZ");
#if HAVE_TZSET
- tzset();
+ tzset();
#endif
- return ret;
+ return ret;
}
#endif