I am trying to check if a date is later than a week ago in index.ctp
:
(((!isset($task->date_end) || is_null($task->date_end))?
strotime('now') : $task->date_end) > strtotime('-1 week'))
But I receive this error:
Object of class Cake\I18n\FrozenTime could not be converted to int
To check if there is anything wrong with the dates in the database I changed them all to : 2019-01-02 05:06:00.000000