mirror of https://github.com/status-im/NimYAML.git
fix deprecated stuff
This commit is contained in:
parent
060fc07803
commit
c339661a6f
|
@ -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()
|
||||
|
|
|
@ -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: [].} =
|
||||
|
|
Loading…
Reference in New Issue