fix regression in times.parse syntax due to changes in times module

Probably due to the changes in the times module, the old syntax throws
an error now.
This commit is contained in:
Vindaar 2018-10-03 19:43:27 +02:00 committed by flyx
parent 048f6615f5
commit 011c99270f

View File

@ -390,7 +390,7 @@ proc constructObject*(s: var YamlStream, c: ConstructionContext,
tmp.add(item.scalarContent[pos + 1])
else:
tmp.add(item.scalarContent[pos .. pos + 2])
let info = tmp.parse("yyyy-M-d'T'H-mm-sszzz")
let info = tmp.parse("yyyy-M-d'T'H:mm:sszzz")
result = info.toTime()
else:
raise s.constructionError("Not a parsable timestamp: " &