-
-
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
Timezone Plugin #974
Timezone Plugin #974
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #974 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 169 170 +1
Lines 1435 1476 +41
Branches 307 311 +4
=========================================
+ Hits 1435 1476 +41
Continue to review full report at Codecov.
|
Many thanks |
describe('Convert', () => { | ||
it('convert to target time', () => { | ||
const losAngeles = dayjs('2014-06-01T12:00:00Z').tz('America/Los_Angeles') | ||
const MlosAngeles = dayjs('2014-06-01T12:00:00Z').tz('America/Los_Angeles') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a typo here, shouldn't this use moment.tz
instead of dayjs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, ha
## [1.8.32](v1.8.31...v1.8.32) (2020-08-04) ### Bug Fixes * Add Experimental Timezone Plugin ([#974](#974)) ([e69caba](e69caba)) * fix parse date string error e.g. '2020/9/30' ([#980](#980)) ([231790d](231790d)), closes [#979](#979) * update monthDiff function to get more accurate results ([19e8a7f](19e8a7f)) * Update UTC plugin to support keepLocalTime ([#973](#973)) ([9f488e5](9f488e5))
🎉 This PR is included in version 1.8.32 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.8.32](iamkun/dayjs@v1.8.31...v1.8.32) (2020-08-04) ### Bug Fixes * Add Experimental Timezone Plugin ([#974](iamkun/dayjs#974)) ([e69caba](iamkun/dayjs@e69caba)) * fix parse date string error e.g. '2020/9/30' ([#980](iamkun/dayjs#980)) ([231790d](iamkun/dayjs@231790d)), closes [#979](iamkun/dayjs#979) * update monthDiff function to get more accurate results ([19e8a7f](iamkun/dayjs@19e8a7f)) * Update UTC plugin to support keepLocalTime ([#973](iamkun/dayjs#973)) ([9f488e5](iamkun/dayjs@9f488e5))
## [1.8.32](iamkun/dayjs@v1.8.31...v1.8.32) (2020-08-04) ### Bug Fixes * Add Experimental Timezone Plugin ([#974](iamkun/dayjs#974)) ([e69caba](iamkun/dayjs@e69caba)) * fix parse date string error e.g. '2020/9/30' ([#980](iamkun/dayjs#980)) ([231790d](iamkun/dayjs@231790d)), closes [#979](iamkun/dayjs#979) * update monthDiff function to get more accurate results ([19e8a7f](iamkun/dayjs@19e8a7f)) * Update UTC plugin to support keepLocalTime ([#973](iamkun/dayjs#973)) ([9f488e5](iamkun/dayjs@9f488e5))
## [1.8.32](iamkun/dayjs@v1.8.31...v1.8.32) (2020-08-04) ### Bug Fixes * Add Experimental Timezone Plugin ([#974](iamkun/dayjs#974)) ([e69caba](iamkun/dayjs@e69caba)) * fix parse date string error e.g. '2020/9/30' ([#980](iamkun/dayjs#980)) ([231790d](iamkun/dayjs@231790d)), closes [#979](iamkun/dayjs#979) * update monthDiff function to get more accurate results ([19e8a7f](iamkun/dayjs@19e8a7f)) * Update UTC plugin to support keepLocalTime ([#973](iamkun/dayjs#973)) ([9f488e5](iamkun/dayjs@9f488e5))
Add timezon plugin
Thanks luxon and Intl.DateTimeFormat()
Update: https://day.js.org/docs/en/timezone/timezone