mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
use passed format instead of hard coded one
This commit is contained in:
@@ -36,7 +36,7 @@ export function dateFormatFrontend(date) {
|
||||
}
|
||||
|
||||
function dateParse(string, format) {
|
||||
const date = moment(string, 'MM-DD-YYYY')
|
||||
const date = moment(string, format)
|
||||
if (date.isValid()) {
|
||||
return date.getDate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user