mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
Change timespan formatting to always show start & end time for single day events, similar to multi-day events
This commit is contained in:
parent
489cf12310
commit
5502d25bfe
@ -655,7 +655,18 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten
|
|||||||
{"ampm": (egw.preference("timeformat") === "12")}
|
{"ampm": (egw.preference("timeformat") === "12")}
|
||||||
).trim();
|
).trim();
|
||||||
|
|
||||||
timespan += ' ' + duration;
|
timespan += ' - ' + jQuery.datepicker.formatTime(
|
||||||
|
egw.preference("timeformat") === "12" ? "h:mmtt" : "HH:mm",
|
||||||
|
{
|
||||||
|
hour: event.end_m / 60,
|
||||||
|
minute: event.end_m % 60,
|
||||||
|
seconds: 0,
|
||||||
|
timezone: 0
|
||||||
|
},
|
||||||
|
{"ampm": (egw.preference("timeformat") === "12")}
|
||||||
|
).trim();
|
||||||
|
|
||||||
|
timespan += ': ' + duration;
|
||||||
}
|
}
|
||||||
return timespan;
|
return timespan;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user