diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-04 19:09:58 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-04 19:09:58 +0000 |
| commit | 89588b6317d0acfe65ab48151de934445b1c8e10 (patch) | |
| tree | 1f1ff184726199c025dbbf0322fb6363fe44f5f7 | |
| parent | 015ff38f70d1c5f5dd060ce011abbf69cbbcda0a (diff) | |
| download | ruby-89588b6317d0acfe65ab48151de934445b1c8e10.tar.gz ruby-89588b6317d0acfe65ab48151de934445b1c8e10.tar.xz ruby-89588b6317d0acfe65ab48151de934445b1c8e10.zip | |
* time.c (LOCALTIME): should call tzset() before localtime_r().
[ruby-dev:37896]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | time.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Feb 5 03:55:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org> + + * time.c (LOCALTIME): should call tzset() before localtime_r(). + [ruby-dev:37896] + Thu Feb 5 02:12:35 2009 Alexander Zavorine <alexandre.zavorine@nokia.com> * symbian/configure.bat: Updated Symbain configuration procedure to @@ -487,7 +487,7 @@ static VALUE time_get_tm(VALUE, int); #define IF_HAVE_GMTIME_R(x) x #define ASCTIME(tm, buf) asctime_r(tm, buf) #define GMTIME(tm, result) gmtime_r(tm, &result) -#define LOCALTIME(tm, result) localtime_r(tm, &result) +#define LOCALTIME(tm, result) (tzset(),localtime_r(tm, &result)) #else #define IF_HAVE_GMTIME_R(x) /* nothing */ #define ASCTIME(tm, buf) asctime(tm) |
