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

Time zones / daylight savings time? #34

Open
HunterZ opened this issue Jul 3, 2023 · 2 comments
Open

Time zones / daylight savings time? #34

HunterZ opened this issue Jul 3, 2023 · 2 comments

Comments

@HunterZ
Copy link

HunterZ commented Jul 3, 2023

Does croncpp operate relative to UTC, the system's local time zone, or something else? I'm not seeing anything about this in the documentation, and it's concerning because it absolutely matters when you're talking about scheduling against calendar-related attributes. I'm also seeing a lot of open issues regarding things like daylight savings time transitions (#8, #24, #30, #32) and/or time zones (#23).

I know a second-order dependency is probably undesirable, but I'm wondering if it might be worth using the Howard Hinnant date library (https://github.com/HowardHinnant/date) since it's meant to provide modern C++ tools that can help with these kinds of issues.

The C# Cronos library also has some good thoughts in the "Daylight Savings Time" section of its documentation: https://github.com/HangfireIO/Cronos/

@HunterZ
Copy link
Author

HunterZ commented Jul 3, 2023

Update: Looks like libcron also uses date, so there's an example for how to use it in a C++ cron library: https://github.com/PerMalmberg/libcron

@nminkov
Copy link

nminkov commented Sep 11, 2023

Hi devs. Can you please give us more info about UTC vs Local? Do you only work in UTC or can configure in both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants