mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 08:30:35 +03:00
fix: fecha.parse invalid return false (#309)
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ export function formatDate (date, format) {
|
|||||||
|
|
||||||
export function parseDate (value, format) {
|
export function parseDate (value, format) {
|
||||||
try {
|
try {
|
||||||
return fecha.parse(value, format)
|
return fecha.parse(value, format) || null
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user