You've already forked isop-mirror
fix: do not try to fix date values of type string
This commit is contained in:
@@ -91,7 +91,11 @@ const form = ref({
|
||||
|
||||
const user = useSanctumUser<User>();
|
||||
|
||||
function dateTimeFixup(datetime: Date) {
|
||||
function dateTimeFixup(datetime: Date|string) {
|
||||
if(typeof datetime === 'string') {
|
||||
return datetime;
|
||||
}
|
||||
|
||||
const year = datetime.getFullYear()
|
||||
const month = String(datetime.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(datetime.getDate()).padStart(2, '0')
|
||||
|
||||
Reference in New Issue
Block a user