Skip to content

Commit

Permalink
Merge pull request #171 from X2Engine/pczupil-7.1
Browse files Browse the repository at this point in the history
Added strtotime for dueDate
  • Loading branch information
thechiangsta authored Aug 6, 2019
2 parents e0d82cd + 7b1fef8 commit 8f84919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x2engine/protected/modules/actions/models/Actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ public function getNotificationTime () {
if (!isset ($this->_notificationTime)) {
$reminders = $this->getReminders ();
if(count($reminders) > 0){
$notifTime = ($this->dueDate - $reminders[0]->createDate) / 60;
$notifTime = (strtotime($this->dueDate) - $reminders[0]->createDate) / 60;
}else{
$notifTime = 15;
}
Expand Down

0 comments on commit 8f84919

Please sign in to comment.