-
-
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
Format function with setted utcOffset does not work properly #808
Comments
seems no problem. |
just use the same parameters, begin of day in your case with not zero local time: |
I'm having a similar issue where: |
## [1.8.25](v1.8.24...v1.8.25) (2020-04-21) ### Bug Fixes * Fix CustomParseFormat plugin of parsing only YYYY / YYYY-MM bug ([#873](#873)) ([3cea04d](3cea04d)), closes [#849](#849) * Fix Duration plugin get seconds ([#867](#867)) ([62b092d](62b092d)) * Fix type definition of locale ([9790b85](9790b85)) * Fix UTC plugin startOf, endOf bug ([#872](#872)) ([4141084](4141084)), closes [#809](#809) [#808](#808)
🎉 This issue has been resolved in version 1.8.25 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.8.25](iamkun/dayjs@v1.8.24...v1.8.25) (2020-04-21) ### Bug Fixes * Fix CustomParseFormat plugin of parsing only YYYY / YYYY-MM bug ([#873](iamkun/dayjs#873)) ([3cea04d](iamkun/dayjs@3cea04d)), closes [#849](iamkun/dayjs#849) * Fix Duration plugin get seconds ([#867](iamkun/dayjs#867)) ([62b092d](iamkun/dayjs@62b092d)) * Fix type definition of locale ([9790b85](iamkun/dayjs@9790b85)) * Fix UTC plugin startOf, endOf bug ([#872](iamkun/dayjs#872)) ([4141084](iamkun/dayjs@4141084)), closes [#809](iamkun/dayjs#809) [#808](iamkun/dayjs#808)
## [1.8.25](iamkun/dayjs@v1.8.24...v1.8.25) (2020-04-21) ### Bug Fixes * Fix CustomParseFormat plugin of parsing only YYYY / YYYY-MM bug ([#873](iamkun/dayjs#873)) ([3cea04d](iamkun/dayjs@3cea04d)), closes [#849](iamkun/dayjs#849) * Fix Duration plugin get seconds ([#867](iamkun/dayjs#867)) ([62b092d](iamkun/dayjs@62b092d)) * Fix type definition of locale ([9790b85](iamkun/dayjs@9790b85)) * Fix UTC plugin startOf, endOf bug ([#872](iamkun/dayjs#872)) ([4141084](iamkun/dayjs@4141084)), closes [#809](iamkun/dayjs#809) [#808](iamkun/dayjs#808)
## [1.8.25](iamkun/dayjs@v1.8.24...v1.8.25) (2020-04-21) ### Bug Fixes * Fix CustomParseFormat plugin of parsing only YYYY / YYYY-MM bug ([#873](iamkun/dayjs#873)) ([3cea04d](iamkun/dayjs@3cea04d)), closes [#849](iamkun/dayjs#849) * Fix Duration plugin get seconds ([#867](iamkun/dayjs#867)) ([62b092d](iamkun/dayjs@62b092d)) * Fix type definition of locale ([9790b85](iamkun/dayjs@9790b85)) * Fix UTC plugin startOf, endOf bug ([#872](iamkun/dayjs#872)) ([4141084](iamkun/dayjs@4141084)), closes [#809](iamkun/dayjs#809) [#808](iamkun/dayjs#808)
Describe the bug
Format function with setted utcOffset does not work properly
Expected behavior
dayjs('2017-07-20T11:00:00+00:00').utcOffset(-12).format()
should equal to
moment('2017-07-20T11:00:00+00:00').utcOffset(-12).format()
and be '2017-07-19T23:00:00-12:00'
Information
The text was updated successfully, but these errors were encountered: