diff --git a/test/tparser.nim b/test/tparser.nim index defa14a..9e71079 100644 --- a/test/tparser.nim +++ b/test/tparser.nim @@ -73,9 +73,9 @@ macro genTests(): untyped = echo "[tparser] Generating tests from " & absolutePath discard staticExec("git submodule init && git submodule update --remote") - let errorTests = toSet(staticExec("cd " & (absolutePath / "tags" / "error") & + let errorTests = toHashSet(staticExec("cd " & (absolutePath / "tags" / "error") & " && ls -1d *").splitLines()) - let ignored = toSet(["3MYT", "JDH8", "2EBW", "9KAX", "AB8U", "B63P", "FBC9", + let ignored = toHashSet(["3MYT", "JDH8", "2EBW", "9KAX", "AB8U", "B63P", "FBC9", "Q5MG", "S98Z", ".git", "name", "tags", "meta"]) result = newStmtList() diff --git a/yaml/serialization.nim b/yaml/serialization.nim index 128f80a..8a3895c 100644 --- a/yaml/serialization.nim +++ b/yaml/serialization.nim @@ -404,7 +404,7 @@ proc constructObject*(s: var YamlStream, c: ConstructionContext, proc representObject*(value: Time, ts: TagStyle, c: SerializationContext, tag: TagId) {.raises: [ValueError].} = - let tmp = value.getGMTime() + let tmp = value.utc() c.put(scalarEvent(tmp.format("yyyy-MM-dd'T'HH:mm:ss'Z'"))) proc yamlTag*[I](T: typedesc[seq[I]]): TagId {.inline, raises: [].} =