diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-02 04:01:31 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-02 04:01:31 +0000 |
commit | be70a6ebec5a1c4d361a841db9cfa4fbe5d140ef (patch) | |
tree | 9b8af4b82bcd7b883ed1caa583b10324430c0917 /win32/win32.c | |
parent | 2b25baff72412deb6075fe3a3bcba3bf7d0e8401 (diff) |
* win32/win32.c (filetime_to_unixtime): should set tm_isdst to -1.
stat() didn't treat daylight saving time property on WinNT.
[ruby-talk:182100]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 3494461f32..9e448564fc 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3223,6 +3223,7 @@ filetime_to_unixtime(const FILETIME *ft) tm.tm_hour = st.wHour; tm.tm_min = st.wMinute; tm.tm_sec = st.wSecond; + tm.tm_isdst = -1; t = mktime(&tm); return t == -1 ? 0 : t; } |