From 84425899dd6a58778757e9c8f51cd2441ba76d20 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 30 Dec 2018 22:44:22 +0000 Subject: Fix [3cf3a939d32707e100e06e23806e13569856286a|3cf3a939d3]: timezone deprecated in vc2017 --- win/tclWinTime.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; /* -- cgit v0.12