summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/tclWinTime.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 2ea9e86..917b76c 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -531,6 +531,10 @@ TclpGetDate(
time_t time;
if (!useGMT) {
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+ long timezone = 0;
+#endif
+
tzset();
/*
@@ -560,6 +564,10 @@ TclpGetDate(
return TclpLocaltime(t);
}
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+ _get_timezone(&timezone);
+#endif
+
time = *t - timezone;
/*