From d78131805b1319db1227e8d6c69b524bbc45da21 Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Mon, 20 Oct 2014 22:20:05 -0400 Subject: [PATCH] Ensure we always have a start date for recurring tasks. Bug: 13636 --- nag/lib/Task.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nag/lib/Task.php b/nag/lib/Task.php index 040d80d0c63..aa3ec7001c4 100644 --- a/nag/lib/Task.php +++ b/nag/lib/Task.php @@ -1299,6 +1299,8 @@ public function toASTask(array $options = array()) if (!empty($this->start)) { $message->utcstartdate = new Horde_Date($this->start); $message->startdate = new Horde_Date($this->start, 'UTC'); + } elseif ($this->recurs()) { + $message->startdate = new Horde_Date(time()); } /* Priority */