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

Using .add(Duration(days:1)) on clock fallback issue #11

Open
RomanIvn opened this issue Apr 20, 2023 · 1 comment
Open

Using .add(Duration(days:1)) on clock fallback issue #11

RomanIvn opened this issue Apr 20, 2023 · 1 comment
Assignees

Comments

@RomanIvn
Copy link

Note that on 29/10/2023 the clock moves backwards. This will mess up your entire week calculation.

use weekday = DateTime(date.year,date.month,date.day+1)
Everywhere instead of adding duration.

@ahmednfwela ahmednfwela self-assigned this Apr 20, 2023
@ahmednfwela
Copy link
Member

@RomanIvn are you talking about daylight saving time? if you are using UTC dates it shouldn't matter

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