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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}
}