-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 days across daylight savings does not work as expected #586
Comments
Your timezone, please? I can't get this reproduced. |
GMT-07:00 DST (Pacific Daylight Time) |
Should be a bug related to UTC plugin and core bundle, investigating. |
@IssueHunt has funded $100.00 to this issue.
|
🎉 This issue has been resolved in version 1.8.14 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@iamkun has rewarded $90.00 to @iamkun. See it on IssueHunt
|
I think that some variant of this bug still may be happening. I am using version 1.11.6 of dayjs. I have a simple test case for what I think is a dayjs bug. I add 2 days to a day in GMT/UTC timezone and get something that is not on a day boundary. It probably has something to do with daylight savings time because this is when daylight savings time happens in US. However, why its it a 2 hour difference, and why does it happen in GMT/UTC time? This change did not happen when we used moment.js.
|
Describe the bug
I'm seeing a weird issue with using
add()
along withutc()
across a daylight savings boundary where it doesn't add a full day.Expected behavior
Given the following code:
I expect it to output the following:
Instead I see this:
Replication here: https://runkit.com/accelerate/runkit-dayjs-daylight-savings
NOTE: I tested the same code with MomentJS and do get the expected behavior.
Information
IssueHunt Summary
iamkun has been rewarded.
Backers (Total: $100.00)
Submitted pull Requests
Tips
IssueHunt has been backed by the following sponsors. Become a sponsor
The text was updated successfully, but these errors were encountered: