From c339661a6f53468d5bc4f34369da6b64abb45b6f Mon Sep 17 00:00:00 2001 From: narimiran Date: Wed, 22 Jul 2020 11:30:19 +0200 Subject: [PATCH] fix deprecated stuff --- test/tparser.nim | 4 ++-- yaml/serialization.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: [].} =