Made sure unix value is calculated

This commit is contained in:
Jef Roosens 2022-04-12 11:10:49 +02:00
parent 2942793f40
commit 65d6aae701
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 13 additions and 35 deletions

View file

@ -101,13 +101,13 @@ pub fn (ce &CronExpression) next(ref time.Time) ?time.Time {
year++
}
return time.Time{
return time.new_time(time.Time{
year: year
month: month
day: day
minute: minute
hour: hour
}
})
}
fn (ce &CronExpression) next_from_now() ?time.Time {