Skip to content

Daylight savings issue #24

@gbohrn

Description

@gbohrn

There is definitely a problem with this code having to do with daylight savings transition. Simple example

time_t now = 1647084600;    // Mar 12, 2022 4:30am
string e = "0 30 4 * * *";
cron::cronexpr exp = cron::make_cron(e);
time_t next= cron::cron_next(exp, now);

"now" and "next" come out identical. Expectation is next would be a day ahead. Works the rest of the year

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions