diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index 213fbec318..3b6b2819f4 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -655,7 +655,18 @@ var et2_calendar_event = (function(){ "use strict"; return et2_valueWidget.exten {"ampm": (egw.preference("timeformat") === "12")} ).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; },