1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: fix parse_iso8601 on windows (#7853)

This commit is contained in:
yuyi
2021-01-05 00:26:21 +08:00
committed by GitHub
parent b9c6011602
commit 52521554ce
2 changed files with 15 additions and 26 deletions

View File

@ -139,6 +139,5 @@ pub fn parse_iso8601(s string) ?Time {
unix_time += u64(unix_offset)
}
t = unix2(int(unix_time), t.microsecond)
// Convert the time to local time
return t.local()
return t
}