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

time: fix timezone

This commit is contained in:
vitalyster
2020-02-04 14:17:04 +03:00
committed by GitHub
parent 85e4e4cb40
commit 21b54723e4
4 changed files with 14 additions and 8 deletions

View File

@@ -252,7 +252,7 @@ pub fn (t &Time) calc_unix() int {
tm_mon: t.month - 1
tm_year: t.year - 1900
}
return C.mktime(&tt)
return make_unix_time(tt)
}
// TODO add(d time.Duration)