Fixes times.toSeconds to handle hours and minutes correctly.

This commit is contained in:
Grzegorz Adam Hankiewicz
2013-11-17 21:31:05 +01:00
parent 9061b8961e
commit d037aec415

View File

@@ -246,7 +246,8 @@ proc toSeconds(a: TTimeInfo, interval: TTimeInterval): float =
else:
curMonth.inc()
result += float(newinterv.days * 24 * 60 * 60)
result += float(newinterv.minutes * 60 * 60)
result += float(newinterv.hours * 60 * 60)
result += float(newinterv.minutes * 60)
result += float(newinterv.seconds)
result += newinterv.miliseconds / 1000