When I am using the php date() function, the result is not correct. It is not just the timezone who is not correct because the time given has always the same Year, Month, Day, Hour, Minute. The only thing which evolves is the number of seconds.
<?php
$time = date('Y-m-d H:m:s');
var_dump($time);
?>
For example if I run the following script one time I will get :
string(19) "2014-04-01 02:04:41"
And the second time (32 second after the first one), I get :
string(19) "2014-04-01 02:04:12"
I really do not understand what is happening. My PHP version is the 5.5.10 but I also used the 5.4.17. Both running on Mac OS X 10.9.1