title: Warning: date() expects parameter 2 to be long, string given
body: <p>An error:</p>
  
  <blockquote>
    <p>Warning: date() expects parameter 2 to be long</p>
  </blockquote>
  
  <p>This is a postback php scripts part,</p>
  
  <pre><code>$conv_time = time();
  $click_time_to_date = new DateTime(date('Y-m-d h:i:s', $mysql['click_time']));
  $conv_time_to_date = new DateTime(date('Y-m-d h:i:s', $conv_time));
  $diff = $click_time_to_date-&gt;diff($conv_time_to_date);
  $mysql['time_difference'] =  $db-&gt;real_escape_string($diff-&gt;d.' days, '.$diff-&gt;h.' hours, '.$diff-&gt;i.' min and '.$diff-&gt;s.' sec');
  $mysql['conv_time'] = $db-&gt;real_escape_string($conv_time);
  $mysql['ip'] = $db-&gt;real_escape_string($_SERVER['HTTP_X_FORWARDED_FOR']);
  $mysql['user_agent'] = $db-&gt;real_escape_string($_SERVER['HTTP_USER_AGENT']);
  </code></pre>