time: use i64 in unix()

pull/11204/head
Alexander Medvednikov 2021-08-16 06:28:54 +03:00
parent 1c847e04c8
commit eb1ac5b30d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
module time
// unix returns a time struct from Unix time.
pub fn unix(abs int) Time {
pub fn unix(abs i64) Time {
// Split into day and time
mut day_offset := abs / seconds_per_day
if abs % seconds_per_day < 0 {