Alex-Werner / hapi-cron-job

Cron/Schedule jobs for Hapi framework
MIT License
5 stars 8 forks source link

There is an error in parsingExpression, err:0 #2

Closed Alex-Werner closed 7 years ago

Alex-Werner commented 8 years ago

This is triggered by firstExec, nextExec being NaN.

This itself goes from a difference in time, setting the GMT timezone fix the problem. (you can set it by setting in job : localtime:false)

See here difference in same code between Windows (left) and Linux(right)

image

Alex-Werner commented 8 years ago

mind : date.toLocaleTimeString('en-US',{hour12:false})