Correct slot label format for default view.

This commit is contained in:
Alex Tselegidis 2022-01-24 22:43:18 +01:00
parent 987dc4aaeb
commit b968970fa6

View file

@ -1431,11 +1431,11 @@ App.Utils.CalendarDefaultView = (function () {
switch (vars('time_format')) { switch (vars('time_format')) {
case 'military': case 'military':
timeFormat = 'H:mm'; timeFormat = 'H:mm';
slotTimeFormat = 'H(:mm)'; slotTimeFormat = 'H';
break; break;
case 'regular': case 'regular':
timeFormat = 'h:mm a'; timeFormat = 'h:mm a';
slotTimeFormat = 'h(:mm) a'; slotTimeFormat = 'h a';
break; break;
default: default:
throw new Error('Invalid time format setting provided!', vars('time_format')); throw new Error('Invalid time format setting provided!', vars('time_format'));