From 8e5603994848b1e39759fae814941dd77cbae783 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 27 Jan 2016 18:21:14 +0000 Subject: [PATCH] Right align 12 hour times --- calendar/js/et2_widget_timegrid.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar/js/et2_widget_timegrid.js b/calendar/js/et2_widget_timegrid.js index 577309f835..331fa306f0 100644 --- a/calendar/js/et2_widget_timegrid.js +++ b/calendar/js/et2_widget_timegrid.js @@ -707,6 +707,10 @@ var et2_calendar_timegrid = et2_calendar_view.extend([et2_IDetachedDOM, et2_IRes } var time_label = (typeof show[granularity] === 'undefined' ? t % 60 === 0 : show[granularity].indexOf(t % 60) !== -1) ? time : ''; + if(time_label && egw.preference("timeformat") == "12" && time_label.split(':')[0] < 10) + { + time_label ='  ' + time_label; + } if(this.rowHeight < line_height) { // Rows too small for regular label frequency, use automatic calculation