mirror of
https://github.com/status-im/NimYAML.git
synced 2025-01-27 03:25:22 +00:00
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:
parent
048f6615f5
commit
011c99270f
@ -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: " &
|
||||
|
Loading…
x
Reference in New Issue
Block a user