forked from vieter-v/vieter
Made sure unix value is calculated
This commit is contained in:
parent
2942793f40
commit
65d6aae701
2 changed files with 13 additions and 35 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue