summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 93f62b8..0a638e8 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.c
@@ -847,6 +847,11 @@ TclpGetDate(
time_t time;
if (!useGMT) {
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+# undef timezone /* prevent conflict with timezone() function */
+ long timezone = 0;
+#endif
+
tzset();
/*
@@ -876,6 +881,10 @@ TclpGetDate(
return TclpLocaltime(t);
}
+#if defined(_MSC_VER) && (_MSC_VER >= 1900)
+ _get_timezone(&timezone);
+#endif
+
time = *t - timezone;
/*