summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-09-07 21:02:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-09-07 21:02:07 +0100
commit16785b17f5a346b21b6ea865792d1b0f4303810f (patch)
treee4ef5e1aa6c04120d09a28284cd22642169d1271
parenttryConvert* should get the converstion function as a pointer (diff)
downloadslicer-16785b17f5a346b21b6ea865792d1b0f4303810f.tar.bz2
slicer-16785b17f5a346b21b6ea865792d1b0f4303810f.tar.xz
slicer-16785b17f5a346b21b6ea865792d1b0f4303810f.zip
Work properly on DST dates in test code
-rw-r--r--slicer/test/conversions.cpp1
1 files changed, 1 insertions, 0 deletions
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);