PHP-Crontab icon indicating copy to clipboard operation
PHP-Crontab copied to clipboard

Bugfix: The returned timestamp was not the NEXT one

Open zyberspace opened this issue 11 years ago • 2 comments

Crontab behaves not like written in the docs. Documentation: int unix timestamp - next execution time will be greater than given timestamp

"*/1 * * * *"

Before:
  In:  Monday, 05-Aug-13 14:53:27 CEST
  Out: Monday, 05-Aug-13 14:53:27 CEST

After:
  In:  Monday, 05-Aug-13 14:53:27 CEST
  Out: Monday, 05-Aug-13 14:54:27 CEST

Beware: This breaks the API!

zyberspace avatar Aug 05 '13 13:08 zyberspace

Sry for the commit mess, just not my day.

zyberspace avatar Aug 05 '13 13:08 zyberspace

For the 0 6 1 * * the next should be 2014-11-01 06:00, but I think after this changes it's:

2014-11-01 07:00

mruz avatar Oct 01 '14 08:10 mruz