From c328d72f279c1a4f9a0d58bdc8b899fdfaa05fb5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 9 Apr 2015 15:55:55 +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);