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

adding a week to a date give me the wrong date #251

Open
rodriger06 opened this issue Sep 22, 2023 · 1 comment
Open

adding a week to a date give me the wrong date #251

rodriger06 opened this issue Sep 22, 2023 · 1 comment

Comments

@rodriger06
Copy link

Hi,

i am using Jiffy latest version to add a week to a specific date and sometimes it gives me wrong date.
for example

print( Jiffy.parse('2023/11/03').add(weeks: 1).dateTime.toString());

this result in 2023/11/09. Adding a week to 11/03 should give me 11/10 and not 11/09.
for other dates like sept 22, i get sept 29 as a result which is correct.

it looks like there is something wrong with jiffy for 11/3. any ideas what's goin on?
thanks in advance

@Magnuti
Copy link

Magnuti commented Oct 11, 2023

Duplicate of #81. This is expected behaviour because of daylight saving, but it really should be fixed.

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