Also show due/overdue on bateries- and habitoverview

This commit is contained in:
Bernd Bestel
2018-05-12 15:30:13 +02:00
parent ab8094e1c0
commit 3e394a3840
10 changed files with 82 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ class BatteriesService extends BaseService
}
else
{
return date('Y-m-d H:i:s');
return date('2999-12-31 23:59:59');
}
return null;

View File

@@ -26,7 +26,7 @@ class HabitsService extends BaseService
switch($habit->period_type)
{
case self::HABIT_TYPE_MANUALLY:
return date('Y-m-d H:i:s');
return date('2999-12-31 23:59:59');
case self::HABIT_TYPE_DYNAMIC_REGULAR:
return date('Y-m-d H:i:s', strtotime('+' . $habit->period_days . ' day', strtotime($habitLastLogRow->last_tracked_time)));
}