mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user