From 3600a4e82ce0d3d7b57afd290b2fcaf1fa8c58b9 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 6 Apr 2009 23:02:27 +0200 Subject: [PATCH] Fix all-day calculation. --- kronolith/lib/Event.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kronolith/lib/Event.php b/kronolith/lib/Event.php index cce5ae3eb..1c29bf142 100644 --- a/kronolith/lib/Event.php +++ b/kronolith/lib/Event.php @@ -1509,11 +1509,11 @@ abstract class Kronolith_Event { return $this->allday || ($this->start->hour == 0 && $this->start->min == 0 && $this->start->sec == 0 && - (($this->end->hour == 0 && $this->end->min == 0 && $this->end->sec == 0) || - ($this->end->hour == 23 && $this->end->min == 59)) && - ($this->end->mday > $this->start->mday || - $this->end->month > $this->start->month || - $this->end->year > $this->start->year)); + (($this->end->hour == 23 && $this->end->min == 59) || + ($this->end->hour == 0 && $this->end->min == 0 && $this->end->sec == 0 && + ($this->end->mday > $this->start->mday || + $this->end->month > $this->start->month || + $this->end->year > $this->start->year)))); } public function getAlarm() -- 2.11.0