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 | f31c2bafa0dc60f5da9ca0b4e0e7f3d8be6f1d67 (patch) | |
| tree | 006f8ffb4453f13e38895b617a1800cb835908b1 /win32 | |
| parent | b348d297fe848fdaf4dc74f9e4073e6ab82d3244 (diff) | |
| download | ruby-f31c2bafa0dc60f5da9ca0b4e0e7f3d8be6f1d67.tar.gz ruby-f31c2bafa0dc60f5da9ca0b4e0e7f3d8be6f1d67.tar.xz ruby-f31c2bafa0dc60f5da9ca0b4e0e7f3d8be6f1d67.zip | |
* win32/win32.c (unixtime_to_filetime): use localtime() instaed of
gmtime() when using FileLocalTimeToFileTime().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@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 35ca77827..33233364e 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; |
