-
-
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: Add format options for iso week and weekyear #1309
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1309 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 175 175
Lines 1697 1699 +2
Branches 387 388 +1
=========================================
+ Hits 1697 1699 +2
Continue to review full report at Codecov.
|
This LGTM. Would you like to update the doc here https://github.com/dayjs/dayjs-website? The doc in the readme is no longer maintained anymore. |
## [1.10.3](v1.10.2...v1.10.3) (2021-01-09) ### Bug Fixes * fix customParseFormat plugin strict mode parse meridiem bug ([#1321](#1321)) ([e49eeef](e49eeef)) * fix weekYear plugin missing locale bug ([#1319](#1319)) ([344bdc0](344bdc0)), closes [#1304](#1304) * update advancedFormat plugin to add format options for iso week and weekyear ([#1309](#1309)) ([2c54c64](2c54c64)) * update devHelper to add dev warning setting locale before loading ([c5cc893](c5cc893)) * update German [de] locale yearStart ([1858df8](1858df8)), closes [#1264](#1264)
🎉 This PR is included in version 1.10.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.10.3](iamkun/dayjs@v1.10.2...v1.10.3) (2021-01-09) ### Bug Fixes * fix customParseFormat plugin strict mode parse meridiem bug ([#1321](iamkun/dayjs#1321)) ([e49eeef](iamkun/dayjs@e49eeef)) * fix weekYear plugin missing locale bug ([#1319](iamkun/dayjs#1319)) ([344bdc0](iamkun/dayjs@344bdc0)), closes [#1304](iamkun/dayjs#1304) * update advancedFormat plugin to add format options for iso week and weekyear ([#1309](iamkun/dayjs#1309)) ([2c54c64](iamkun/dayjs@2c54c64)) * update devHelper to add dev warning setting locale before loading ([c5cc893](iamkun/dayjs@c5cc893)) * update German [de] locale yearStart ([1858df8](iamkun/dayjs@1858df8)), closes [#1264](iamkun/dayjs#1264)
## [1.10.3](iamkun/dayjs@v1.10.2...v1.10.3) (2021-01-09) ### Bug Fixes * fix customParseFormat plugin strict mode parse meridiem bug ([#1321](iamkun/dayjs#1321)) ([e49eeef](iamkun/dayjs@e49eeef)) * fix weekYear plugin missing locale bug ([#1319](iamkun/dayjs#1319)) ([344bdc0](iamkun/dayjs@344bdc0)), closes [#1304](iamkun/dayjs#1304) * update advancedFormat plugin to add format options for iso week and weekyear ([#1309](iamkun/dayjs#1309)) ([2c54c64](iamkun/dayjs@2c54c64)) * update devHelper to add dev warning setting locale before loading ([c5cc893](iamkun/dayjs@c5cc893)) * update German [de] locale yearStart ([1858df8](iamkun/dayjs@1858df8)), closes [#1264](iamkun/dayjs#1264)
## [1.10.3](iamkun/dayjs@v1.10.2...v1.10.3) (2021-01-09) ### Bug Fixes * fix customParseFormat plugin strict mode parse meridiem bug ([#1321](iamkun/dayjs#1321)) ([e49eeef](iamkun/dayjs@e49eeef)) * fix weekYear plugin missing locale bug ([#1319](iamkun/dayjs#1319)) ([344bdc0](iamkun/dayjs@344bdc0)), closes [#1304](iamkun/dayjs#1304) * update advancedFormat plugin to add format options for iso week and weekyear ([#1309](iamkun/dayjs#1309)) ([2c54c64](iamkun/dayjs@2c54c64)) * update devHelper to add dev warning setting locale before loading ([c5cc893](iamkun/dayjs@c5cc893)) * update German [de] locale yearStart ([1858df8](iamkun/dayjs@1858df8)), closes [#1264](iamkun/dayjs#1264)
Like moment.js - day.js should allow the format function to be compatible with iso weeks. and since isoweeks are a plugin already, we can just call it.