title: PHP strtotime(): date showing '1970-01-01 ' after conversion
body: <p>I am reading the data from an excel sheet and inserting into MySQL table. In this process, I am converting the timestamp (string) to datetime using the PHP method <code>strtotime()</code>.</p>
  
  <pre><code>$timestamp = date('Y-m-d H:i:sa',strtotime(trim($value-&gt;Time)));
  </code></pre>
  
  <p>This is failing in some cases. </p>
  
  <p>Example:</p>
  
  <pre><code> echo date('Y-m-d H:i:s',strtotime('04-13-2018 0:00:53'));
  
   echo date('Y-m-d H:i:s',strtotime('04-12-2018 0:00:53'));
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>1970-01-01 00:00:00
  
  2018-12-04 00:00:53
  </code></pre>
  
  <p>Can anyone help me how can I solve this issue?</p>
  
  <p>Sample Strings for which it is failing:</p>
  
  <pre><code>04-12-2018 0:00:53
  04-12-2018 0:01:53
  04-12-2018 0:02:53
  04-12-2018 0:03:53
  04-12-2018 0:04:53
  04-12-2018 0:05:53
  04-12-2018 0:06:53
  04-12-2018 0:07:53
  04-12-2018 0:08:54
  04-12-2018 0:09:54
  04-12-2018 0:10:53
  04-12-2018 0:11:53
  04-12-2018 0:12:53
  04-12-2018 0:13:53
  04-12-2018 0:14:53
  04-12-2018 0:15:53
  04-12-2018 0:16:53
  04-12-2018 0:17:53
  04-12-2018 0:18:53
  04-12-2018 0:19:54
  04-12-2018 0:20:54
  04-12-2018 0:21:54
  04-12-2018 0:22:53
  04-12-2018 0:23:54
  04-12-2018 0:24:53
  04-12-2018 0:25:54
  </code></pre>