mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Preserve original UTC timestamp
This commit is contained in:
parent
3dc85639f4
commit
77f03425ef
2 changed files with 6 additions and 6 deletions
|
|
@ -36,7 +36,7 @@ template getError*(js: JsonNode): Error =
|
|||
|
||||
template parseTime(time: string; f: static string; flen: int): Time =
|
||||
if time.len != flen: return
|
||||
parseTime(time, f, utc())
|
||||
parse(time, f).toTime
|
||||
|
||||
proc getDateTime*(js: JsonNode): Time =
|
||||
parseTime(js.getStr, "yyyy-MM-dd\'T\'HH:mm:ss\'Z\'", 20)
|
||||
|
|
|
|||
Loading…
Reference in a new issue