From 011c99270f1ecf3df36a6fe2ef0f66d6418db7da Mon Sep 17 00:00:00 2001 From: Vindaar Date: Wed, 3 Oct 2018 19:43:27 +0200 Subject: [PATCH] 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. --- yaml/serialization.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml/serialization.nim b/yaml/serialization.nim index 79a5313..e7fdef2 100644 --- a/yaml/serialization.nim +++ b/yaml/serialization.nim @@ -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: " &