mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
Make sure there's string to be replaced
This commit is contained in:
parent
0516bf5f59
commit
9bfb3a3c98
@ -393,7 +393,7 @@ var et2_date = et2_inputWidget.extend(
|
|||||||
|
|
||||||
// Convert to timestamp - no seconds
|
// Convert to timestamp - no seconds
|
||||||
this.date.setSeconds(0,0);
|
this.date.setSeconds(0,0);
|
||||||
return this.date.toJSON().replace(/\.\d{3}Z$/, 'Z');
|
return this.date?this.date.toJSON().replace(/\.\d{3}Z$/, 'Z'):this.date;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
et2_register_widget(et2_date, ["date", "date-time", "date-timeonly"]);
|
et2_register_widget(et2_date, ["date", "date-time", "date-timeonly"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user