diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-17 02:52:43 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-05-17 02:52:43 +0000 |
commit | 0a6a371abf8d68184a419c2f3160f21483009aac (patch) | |
tree | 312565105d59d135a792b19b2221e29de2782f01 /win32 | |
parent | a1ce08c5b39b848ed5f87f3cd3f75259bcb6b347 (diff) | |
download | ruby-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.c | 2 |
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; |