summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 46e2cd2..db8859c 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -647,6 +647,10 @@ TclpGetDate(
time_t time;
if (!useGMT) {
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+ long timezone = 0;
+#endif
+
tzset();
/*
@@ -676,6 +680,10 @@ TclpGetDate(
return TclpLocaltime(t);
}
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+ _get_timezone(&timezone);
+#endif
+
time = *t - timezone;
/*