summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-17 02:52:43 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-17 02:52:43 +0000
commit32793817582fb1d7c3b23b27ce947a4fbeca56c9 (patch)
tree006f8ffb4453f13e38895b617a1800cb835908b1 /win32
parent297cb521c1a39189da99d23b6a24c8558204992b (diff)
* win32/win32.c (unixtime_to_filetime): use localtime() instaed of
gmtime() when using FileLocalTimeToFileTime(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
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;