summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
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;