mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2b25baff72
commit
be70a6ebec
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Thu Mar 2 12:55:16 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
|
* 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 <ocean@m2.ccsnet.ne.jp>
|
Wed Mar 1 00:15:51 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||||
|
|
||||||
* lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
|
* lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
|
||||||
|
|
|
@ -3223,6 +3223,7 @@ filetime_to_unixtime(const FILETIME *ft)
|
||||||
tm.tm_hour = st.wHour;
|
tm.tm_hour = st.wHour;
|
||||||
tm.tm_min = st.wMinute;
|
tm.tm_min = st.wMinute;
|
||||||
tm.tm_sec = st.wSecond;
|
tm.tm_sec = st.wSecond;
|
||||||
|
tm.tm_isdst = -1;
|
||||||
t = mktime(&tm);
|
t = mktime(&tm);
|
||||||
return t == -1 ? 0 : t;
|
return t == -1 ? 0 : t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue