-
-
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
fix: incorrect startOf/endOf behavior with +00:00 timezone #1512
base: dev
Are you sure you want to change the base?
Conversation
sorry for open this PR multi-time, look like there is some problem with Travis-CI and I'm trying to solve this with Travis support, this PR is a test for Travis support. |
Thanks. It is odd that the PR sent from your account could not trigger the CI. But the rest looks fine. |
I run the |
I pass all the tests on my machine, can you share the error?
|
Codecov Report
@@ Coverage Diff @@
## dev #1512 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 183 176 -7
Lines 2111 1973 -138
Branches 554 501 -53
==========================================
- Hits 2111 1973 -138
|
finally... CI work |
@iamkun this PR has been open for a long time, just want to know |
According to your fix, is that mean, we should not update the startOf func in a timezone plugin, and the problem is solved? |
@iamkun hi, It appears that this issue still exists. I update the code with latest version, would be great you can take a look on this. reply your last comment: yes, I think we should not update startOf func in a timezone plugin I found that these line break $D,$H...etc dayjs/src/plugin/timezone/index.js Lines 123 to 125 in 1e9ba76
then format func will return incorrect format string |
fix: incorrect startOf/endOf behavior with +00:00 timezone
assume I'm in +08:00, when I parse time string with any regions in +00:00(like
UTC
,Africa/Abidjan
), got the incorrect resultexample:
incorrect in dayjs:
expect work like moment
clone form #1506