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
commit0a6a371abf8d68184a419c2f3160f21483009aac (patch)
tree312565105d59d135a792b19b2221e29de2782f01 /win32
parenta1ce08c5b39b848ed5f87f3cd3f75259bcb6b347 (diff)
downloadruby-0a6a371abf8d68184a419c2f3160f21483009aac.tar.gz
* 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
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 82b7810ac4..e55c0866ed 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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;