1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/win32.c (unixtime_to_filetime): use localtime() instaed of

gmtime() when using FileLocalTimeToFileTime().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2005-05-17 02:52:43 +00:00
parent a1ce08c5b3
commit 0a6a371abf
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue May 17 11:49:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (unixtime_to_filetime): use localtime() instaed of
gmtime() when using FileLocalTimeToFileTime().
Mon May 16 22:42:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_t

View file

@ -3492,7 +3492,7 @@ unixtime_to_filetime(time_t time, FILETIME *ft)
SYSTEMTIME st;
FILETIME lt;
tm = gmtime(&time);
tm = localtime(&time);
st.wYear = tm->tm_year + 1900;
st.wMonth = tm->tm_mon + 1;
st.wDayOfWeek = tm->tm_wday;