forked from extern/egroupware
Avoid JS error by making sure we have a date format
This commit is contained in:
parent
4ba7bac850
commit
4cf185ce7e
@ -37,7 +37,7 @@ egw.extend('calendar', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
|||||||
function calendarPreferences(_egw)
|
function calendarPreferences(_egw)
|
||||||
{
|
{
|
||||||
// Date format in jQuery UI date format
|
// 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
|
// First day of the week
|
||||||
var first_day = {"Monday": 1, "Sunday": 0, "Saturday": 6};
|
var first_day = {"Monday": 1, "Sunday": 0, "Saturday": 6};
|
||||||
|
Loading…
Reference in New Issue
Block a user