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

time: fix repetitive time.now().local().local().local() offsetting the time further and further (#13861)

This commit is contained in:
Vincenzo Palazzo
2022-03-31 23:11:17 +02:00
committed by GitHub
parent 9c1981a309
commit 02c80bd445
5 changed files with 21 additions and 2 deletions

View File

@ -117,5 +117,9 @@ fn convert_ctime(t C.tm, microsecond int) Time {
second: t.tm_sec
microsecond: microsecond
unix: make_unix_time(t)
// for the actual code base when we
// call convert_ctime, it is always
// when we manage the local time.
is_local: true
}
}