-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Semver: MajorHas breaking changesHas breaking changesType: BugThe issue has indentified a bugThe issue has indentified a bug
Description
Package version
2.1.0
Describe the bug
When validating a date with a format containing the symbol Z (see https://day.js.org/docs/en/display/format#list-of-all-available-formats) it will fail.
This issue seems to be related on DayJS latest version. Here some tickets open on their github :
- Valid date with UTC offset fails validaton iamkun/dayjs#2730
- CRITICAL: Unable to parse UTC offset iamkun/dayjs#2724
Here an example to test :
vine.object({
startDateTime: vine
.date({
formats: ['YYYY-MM-DD[T]HH:mmZ'],
})
})input : "startDateTime": "2024-09-11T14:20+0200"
I wish you all a lovely day :)
Reproduction repo
No response
Metadata
Metadata
Assignees
Labels
Semver: MajorHas breaking changesHas breaking changesType: BugThe issue has indentified a bugThe issue has indentified a bug