Mktime and other functions give wrong answer for such a date like 2011-02-27 02:04:46;
Just use the strtotime() function, or the DateTime class.
echo strtotime('2011-02-27 02:04:46');
$dt = new DateTime('2011-02-27 02:04:46');
echo $dt->format('U');
Will give you the same output :
1298768686
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With