diff --git a/lib/pure/times.nim b/lib/pure/times.nim index 113f73d2a6..a2e5f494d6 100644 --- a/lib/pure/times.nim +++ b/lib/pure/times.nim @@ -959,7 +959,7 @@ proc high*(typ: typedesc[Time]): Time = initTime(high(int64), high(NanosecondRange)) proc low*(typ: typedesc[Time]): Time = - initTime(low(int64), 0) + initTime(0, 0) # # DateTime & Timezone diff --git a/tests/misc/t16264.nim b/tests/misc/t16264.nim new file mode 100644 index 0000000000..afe319e6cf --- /dev/null +++ b/tests/misc/t16264.nim @@ -0,0 +1,2 @@ +import times +doAssert low(Time) == fromUnix(0) \ No newline at end of file