Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daylight saving issue #8

Open
Edgaras-Randis opened this issue Apr 24, 2019 · 1 comment
Open

Daylight saving issue #8

Edgaras-Randis opened this issue Apr 24, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Edgaras-Randis
Copy link

unix epoch time: 1585398600
Saturday, March 28, 2020 2:30:00 PM GMT+02:00

rule: 0 30 14 * * *

using that time, next time returns the same time, it's probably related with the daylight time saving of next day change.

@mariusbancila mariusbancila added the bug Something isn't working label Sep 6, 2020
@mariusbancila mariusbancila self-assigned this May 2, 2022
@mariusbancila
Copy link
Owner

This code fails:

time_t now = 1585398600;    // Saturday, March 28, 2020 2:30:00 PM GMT+02:00
std::string expr = "0 30 14 * * *";
cron::cronexpr exp = cron::make_cron(expr);
time_t next = cron::cron_next(exp, now);

REQUIRE(next > now);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants