Skip to content

Commit

Permalink
Bug: 14018 Fix comparision.
Browse files Browse the repository at this point in the history
This was failing if the datetime was equal, but the timezone
identifier was different.

Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>
  • Loading branch information
horde@albasoft.com authored and mrubinsk committed Jun 24, 2015
1 parent aee16dc commit 261745c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kronolith/lib/Api.php
Expand Up @@ -847,8 +847,8 @@ protected function _addiCalEvent($content, $driver, $exception = false)
// Check if the match really is an exact match:
foreach ($result as $days) {
foreach ($days as $match) {
if ($match->start == $event->start &&
$match->end == $event->end &&
if ($match->start->compareDateTime($event->start) == 0 &&
$match->end->compareDateTime($event->end) == 0 &&
$match->title == $event->title &&
$match->location == $event->location &&
$match->hasPermission(Horde_Perms::EDIT)) {
Expand Down

0 comments on commit 261745c

Please sign in to comment.