summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--win32/win32.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e7bc5a1806..9ca208b980 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue May 17 11:52: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:28:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_t
diff --git a/win32/win32.c b/win32/win32.c
index 35ca77827a..33233364e6 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3303,7 +3303,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;