Skip to content

changed behaviour of parser with 5.0 #370

@john30

Description

@john30

the explicit addition of the 'UTC' timezone parameter in

const currentDate = options.currentDate || new CronDate(undefined, 'UTC');

changes the behavior compared to the latest 4.x version where DateTime.local() was used instead due to absence of explicit timestamp to the CronDate constructor:

options.currentDate = new CronDate(undefined, self._tz);

This should be mentioned in the breaking changes at least or even better changed back to the previous behavior.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions