Skip to content
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

Custom format creating wrong date #494

Closed
atilacamurca opened this issue Feb 13, 2019 · 1 comment
Closed

Custom format creating wrong date #494

atilacamurca opened this issue Feb 13, 2019 · 1 comment
Labels

Comments

@atilacamurca
Copy link

Parsing the date 31/01/2019 (pt-br style) using dayjs_plugin_customParseFormat is creating a wrong date.

dayjs.extend(dayjs_plugin_customParseFormat);

dayjs('31/01/2019', 'DD/MM/YYYY')
// => 2019-03-03T00:00:00-03:00

https://jsfiddle.net/dpb4hfnk/

@iamkun iamkun closed this as completed in 9884ca5 Feb 14, 2019
iamkun pushed a commit that referenced this issue Feb 14, 2019
## [1.8.6](v1.8.5...v1.8.6) (2019-02-14)

### Bug Fixes

* Add Bahasa Melayu (Malaysia) locale ([#485](#485)) ([cb208b0](cb208b0))
* Copy & export built-in en locale to /locale folder as a separate file ([a7e05e0](a7e05e0))
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9884ca5](9884ca5)), closes [#494](#494)
* Fix commonJS require ES Module bug in webpack4 ([23f9f3d](23f9f3d))
* Fix startOf week bug while week start is not Sunday ([5eaf77b](5eaf77b))
* Implemented isBetween inclusivity ([#464](#464)) ([af2f4f1](af2f4f1))
* Update Swedish and Finnish locales ([#488](#488)) ([f142082](f142082))
@iamkun
Copy link
Owner

iamkun commented Feb 14, 2019

🎉 This issue has been resolved in version 1.8.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this issue May 10, 2022
## [1.8.6](iamkun/dayjs@v1.8.5...v1.8.6) (2019-02-14)

### Bug Fixes

* Add Bahasa Melayu (Malaysia) locale ([#485](iamkun/dayjs#485)) ([cb208b0](iamkun/dayjs@cb208b0))
* Copy & export built-in en locale to /locale folder as a separate file ([a7e05e0](iamkun/dayjs@a7e05e0))
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9884ca5](iamkun/dayjs@9884ca5)), closes [#494](iamkun/dayjs#494)
* Fix commonJS require ES Module bug in webpack4 ([23f9f3d](iamkun/dayjs@23f9f3d))
* Fix startOf week bug while week start is not Sunday ([5eaf77b](iamkun/dayjs@5eaf77b))
* Implemented isBetween inclusivity ([#464](iamkun/dayjs#464)) ([af2f4f1](iamkun/dayjs@af2f4f1))
* Update Swedish and Finnish locales ([#488](iamkun/dayjs#488)) ([f142082](iamkun/dayjs@f142082))
andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this issue May 10, 2022
## [1.8.6](iamkun/dayjs@v1.8.5...v1.8.6) (2019-02-14)

### Bug Fixes

* Add Bahasa Melayu (Malaysia) locale ([#485](iamkun/dayjs#485)) ([cb208b0](iamkun/dayjs@cb208b0))
* Copy & export built-in en locale to /locale folder as a separate file ([a7e05e0](iamkun/dayjs@a7e05e0))
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9884ca5](iamkun/dayjs@9884ca5)), closes [#494](iamkun/dayjs#494)
* Fix commonJS require ES Module bug in webpack4 ([23f9f3d](iamkun/dayjs@23f9f3d))
* Fix startOf week bug while week start is not Sunday ([5eaf77b](iamkun/dayjs@5eaf77b))
* Implemented isBetween inclusivity ([#464](iamkun/dayjs#464)) ([af2f4f1](iamkun/dayjs@af2f4f1))
* Update Swedish and Finnish locales ([#488](iamkun/dayjs#488)) ([f142082](iamkun/dayjs@f142082))
allmoviestvshowslistsfilmography28 added a commit to allmoviestvshowslistsfilmography28/dayjs that referenced this issue Sep 12, 2024
## [1.8.6](iamkun/dayjs@v1.8.5...v1.8.6) (2019-02-14)

### Bug Fixes

* Add Bahasa Melayu (Malaysia) locale ([#485](iamkun/dayjs#485)) ([8dbf69b](iamkun/dayjs@8dbf69b))
* Copy & export built-in en locale to /locale folder as a separate file ([12d95a5](iamkun/dayjs@12d95a5))
* Fix bug in customParseFormat plugin while month(MM) is '01' ([9513565](iamkun/dayjs@9513565)), closes [#494](iamkun/dayjs#494)
* Fix commonJS require ES Module bug in webpack4 ([d00327f](iamkun/dayjs@d00327f))
* Fix startOf week bug while week start is not Sunday ([5893929](iamkun/dayjs@5893929))
* Implemented isBetween inclusivity ([#464](iamkun/dayjs#464)) ([3d2da0a](iamkun/dayjs@3d2da0a))
* Update Swedish and Finnish locales ([#488](iamkun/dayjs#488)) ([9175041](iamkun/dayjs@9175041))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants