Avoid JS error by making sure we have a date format

This commit is contained in:
nathangray 2020-05-15 14:42:31 -06:00
parent 4ba7bac850
commit 4cf185ce7e

View File

@ -37,7 +37,7 @@ egw.extend('calendar', egw.MODULE_WND_LOCAL, function(_app, _wnd)
function calendarPreferences(_egw)
{
// Date format in jQuery UI date format
var dateformat = dateTimeFormat(_egw.preference("dateformat"));
var dateformat = dateTimeFormat(_egw.preference("dateformat") || "Y-m-d");
// First day of the week
var first_day = {"Monday": 1, "Sunday": 0, "Saturday": 6};