From fd94020f2e62606e892f58d41bed22127a7e849f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 10 Apr 2015 14:12:30 +0000 Subject: [PATCH] Format start and end date to avoid js timestamp fiddling --- calendar/inc/class.calendar_uilist.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index 0c3016bbe6..bdec76768c 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -481,6 +481,12 @@ class calendar_uilist extends calendar_ui // set id for grid $event['row_id'] = $event['id'].($event['recur_type'] ? ':'.$event['recur_date'] : ''); + + // Format start and end with timezone + foreach(array('start','end') as $time) + { + $event[$time] = egw_time::to($event[$time],'Y-m-d\TH:i:s\Z'); + } $rows[] = $event; unset($app);