Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created July 19, 2012 00:13
Show Gist options
  • Select an option

  • Save hobodave/3139868 to your computer and use it in GitHub Desktop.

Select an option

Save hobodave/3139868 to your computer and use it in GitHub Desktop.
<?php
echo strtotime("0000-00-00 00:00:00"),PHP_EOL;
/**
* Output in console
$ php console.php
-62169962400
*/
<?php
$resolvedTime = strtotime($objCurrentItem->get('resolved'));
var_dump("resolved:{$objCurrentItem->get('resolved')}");
var_dump("strtotime:{$resolvedTime}");
/**
* Output in browser
string(28) "resolved:0000-00-00 00:00:00"
string(22) "strtotime:-62169955200"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment