Format start and end date to avoid js timestamp fiddling

This commit is contained in:
Nathan Gray 2015-04-10 14:12:30 +00:00
parent f2e9cb89eb
commit fd94020f2e

View File

@ -481,6 +481,12 @@ class calendar_uilist extends calendar_ui
// set id for grid // set id for grid
$event['row_id'] = $event['id'].($event['recur_type'] ? ':'.$event['recur_date'] : ''); $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; $rows[] = $event;
unset($app); unset($app);