From 16785b17f5a346b21b6ea865792d1b0f4303810f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 7 Sep 2017 21:02:07 +0100 Subject: Work properly on DST dates in test code --- slicer/test/conversions.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/slicer/test/conversions.cpp b/slicer/test/conversions.cpp index 3df53b3..2d1ef2c 100644 --- a/slicer/test/conversions.cpp +++ b/slicer/test/conversions.cpp @@ -67,6 +67,7 @@ namespace Slicer { tm.tm_mday = in.day; tm.tm_mon = in.month- 1; tm.tm_year = in.year - 1900; + tm.tm_isdst = -1; mktime(&tm); char buf[BUFSIZ]; auto len = strftime(buf, BUFSIZ, "%Y-%b-%d %H:%M:%S", &tm); -- cgit v1.2.3