From 8427d446e04f181c5c319dd4011abb31b915356d Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 28 Apr 2022 16:05:30 +0200 Subject: [PATCH] Base: fix a possible naming clash with 'timezone' with Py3.6 on Windows --- src/Base/TimeInfo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Base/TimeInfo.cpp b/src/Base/TimeInfo.cpp index 033625bd36..f434d9b199 100644 --- a/src/Base/TimeInfo.cpp +++ b/src/Base/TimeInfo.cpp @@ -101,10 +101,7 @@ float TimeInfo::diffTimeF(const TimeInfo &timeStart,const TimeInfo &timeEnd ) TimeInfo TimeInfo::null() { TimeInfo ti; - ti.timebuffer.time = 0; - ti.timebuffer.millitm = 0; - ti.timebuffer.timezone = 0; - ti.timebuffer.dstflag = 0; + ti.timebuffer = {}; return ti; }