mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
time: fix repetitive time.now().local().local().local() offsetting the time further and further (#13861)
This commit is contained in:
parent
9c1981a309
commit
02c80bd445
5 changed files with 21 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue