fix deprecated stuff

This commit is contained in:
narimiran 2020-07-22 11:30:19 +02:00 committed by flyx
parent 060fc07803
commit c339661a6f
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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: [].} =