We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ced9d8 + db98690 commit 15c1ca8Copy full SHA for 15c1ca8
MiniScript-cpp/src/DateTimeUtils.cpp
@@ -307,6 +307,7 @@ time_t ParseDate(const String dateStr) {
307
dateTime.tm_mon = now.tm_mon;
308
dateTime.tm_mday = now.tm_mday;
309
}
310
+ dateTime.tm_isdst = -1;
311
return mktime(&dateTime);
312
313
MiniScript-cpp/tests/testDaylight.ms
@@ -0,0 +1,14 @@
1
+import "qa"
2
+
3
+testDaylight = function
4
5
+ // This test always only tests a half of functionality depending on whether the host system has "daylight savings" on or off.
6
7
+ d = "2000-01-01 11:00:00"
8
+ qa.assertEqual _dateStr(d, "%H"), "11"
9
10
+ d = "2000-07-01 11:00:00"
11
12
+end function
13
14
+if refEquals(locals, globals) then testDaylight
0 commit comments