From be70a6ebec5a1c4d361a841db9cfa4fbe5d140ef Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 2 Mar 2006 04:01:31 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ win32/win32.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3f0b1530ac..369adc733c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 2 12:55:16 2006 Hirokazu Yamamoto + + * 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] + Wed Mar 1 00:15:51 2006 Hirokazu Yamamoto * lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/. 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; }