summary refs log tree commit diff stats
path: root/lib/pure/times.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-11-02 18:23:10 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-11-02 18:23:21 +0100
commit762ade11778e8e7152bdcd0866633d022d81250d (patch)
tree427dc023b59ef1de43c5f0ffc36313d78959672e /lib/pure/times.nim
parentb7bce6f9001c2ef95915c87b5cc42967ce3c648c (diff)
downloadNim-762ade11778e8e7152bdcd0866633d022d81250d.tar.gz
'ord' does not produce a range type anymore
Diffstat (limited to 'lib/pure/times.nim')
-rw-r--r--lib/pure/times.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index 7dd428904..c1d6c3e53 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -224,7 +224,7 @@ proc `-`*(a, b: Time): int64 {.
   ##     let a = fromSeconds(1_000_000_000)
   ##     let b = fromSeconds(1_500_000_000)
   ##     echo initInterval(seconds=int(b - a))
-  ##     # (milliseconds: 0, seconds: 20, minutes: 53, hours: 0, days: 5787, months: 0, years: 0) 
+  ##     # (milliseconds: 0, seconds: 20, minutes: 53, hours: 0, days: 5787, months: 0, years: 0)
 
 proc `<`*(a, b: Time): bool {.
   rtl, extern: "ntLtTime", tags: [], raises: [], noSideEffect.} =
@@ -1225,7 +1225,7 @@ when not defined(JS):
     result.minute = t.minute
     result.hour = t.hour
     result.monthday = t.monthday
-    result.month = ord(t.month)
+    result.month = cint(t.month)
     result.year = cint(t.year - 1900)
     result.weekday = weekDays[t.weekday]
     result.yearday = t.yearday