The date function sometimes give wrong answers. This code will help you figure it out.
<?php
$d="2010-01-31 09:06:09";
$i= strtotime($d);
echo $d;
echo "<br>";
echo date("Y-m-d h:m:s",$i);
?>
this gives the output:
2010-01-31 09:06:09
2010-01-31 09:01:09
very small change but still not accurate.
--was--
The date function sometimes give wrong answers. This code will help you figure it out.
$d="2010-01-31 09:06:09";
$i= strtotime($d);
echo $d;
echo "<br>";
echo date("Y-m-d h:m:s",$i);
this gives the output:
2010-01-31 09:06:09
2010-01-31 09:01:09
very small change but still not accurate.
http://php.net/manual/en/function.date.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.