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