summary refs log tree commit diff stats
path: root/tests/stdlib/ttime.nim
diff options
context:
space:
mode:
authorFelix Krause <contact@flyx.org>2016-11-11 17:52:53 +0100
committerFelix Krause <contact@flyx.org>2016-11-14 18:28:55 +0100
commitaa08c32c2b6a32da1aa1f98234512f37330a6691 (patch)
treefb9b78010f767ed719e2ac52987356f3b95d1e75 /tests/stdlib/ttime.nim
parent544a2cfe1a9c4805568f6dd781cd85fa4537cb73 (diff)
downloadNim-aa08c32c2b6a32da1aa1f98234512f37330a6691.tar.gz
Improved `-`; fixed tests
 * added prefix `-` operator for TimeInterval
 * improved `-` for both TimeInterval and TimeInfo
 * Fixed a DST test
Diffstat (limited to 'tests/stdlib/ttime.nim')
-rw-r--r--tests/stdlib/ttime.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdlib/ttime.nim b/tests/stdlib/ttime.nim
index 6d3d7c93a..39106f1e0 100644
--- a/tests/stdlib/ttime.nim
+++ b/tests/stdlib/ttime.nim
@@ -219,7 +219,7 @@ block dstTest:
   # January and one in July to maximize the probability to hit one date with DST
   # and one without on the local machine. However, this is not guaranteed.
   let
+    parsedJan = parse("2016-01-05 04:00:00+01:00", "yyyy-MM-dd HH:mm:sszzz")
     parsedJul = parse("2016-07-01 04:00:00+01:00", "yyyy-MM-dd HH:mm:sszzz")
-    parsedJan = parse("2016-01-05 04:00:00+01:00", "yyyy-MM-ss HH:mm:sszzz")
-  doAssert toTime(parsedJan) == fromSeconds(1452394800)
+  doAssert toTime(parsedJan) == fromSeconds(1451962800)
   doAssert toTime(parsedJul) == fromSeconds(1467342000)