mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 23:58:54 +01:00
Calendar: Fix user / server timezone mismatch could trigger an incorrect status reset
This commit is contained in:
parent
5b1071e3d9
commit
34dbf8531b
@ -3021,7 +3021,9 @@ class calendar_boupdate extends calendar_bo
|
||||
*/
|
||||
protected function check_reset_statuses(&$event, $old_event)
|
||||
{
|
||||
if(!$old_event || !is_array($old_event) || $event['start'] == $old_event['start'])
|
||||
// Event passed is still in user time at this point, convert to servertime for
|
||||
// comparison, but don't modify it in event
|
||||
if(!$old_event || !is_array($old_event) || $this->date2ts($event['start'],true) == $old_event['start'])
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user