mruby-time: remove unnecessary tzset call

The gem doesn't use the global variables and:
>Local timezone information is used as though localtime() calls tzset().
http://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
This commit is contained in:
cremno
2014-04-13 16:39:16 +02:00
parent 382aed8a12
commit 8b5cbe2f33
+1 -1
View File
@@ -86,7 +86,7 @@ gettimeofday(struct timeval *tv, void *tz)
#endif
#ifdef NO_GMTIME_R
#define gmtime_r(t,r) gmtime(t)
#define localtime_r(t,r) (tzset(),localtime(t))
#define localtime_r(t,r) localtime(t)
#endif
#ifndef USE_SYSTEM_TIMEGM