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

bug in moment.add() #209

Open
vahid18u opened this issue Aug 24, 2020 · 0 comments
Open

bug in moment.add() #209

vahid18u opened this issue Aug 24, 2020 · 0 comments

Comments

@vahid18u
Copy link

vahid18u commented Aug 24, 2020

imagine we have a moment m which it's time is 00:00:00 am, and we call m.add(10, 'day') and suddenly the new day is a day with advanced clock for daylight saving. the new time will be 01:00:00 am surprisingly. this means in case we need to have start of the day, we should call m.startof('day') after any call to m.add(10, 'day').

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

1 participant