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:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user