This question already has an answer here:
Please understand, that this question wasn't answered there. Because if what they say in there would be true, timestamp should vary depending of timezone on given hour.
I got a problem with one project, because seems that timezone set on server was totally different then on machine where data is collected. Does timestamp change when default timezone changes in PHP? Should it or should it not?
php -r "date_default_timezone_set(\"Asia/Jakarta\");echo time();"
1397552668
php -r "echo time();"
1397552675
Seems it does not...am I right? Or am I doing something wrong?
Another test:
<?php
echo date_default_timezone_get();
echo " : ".time();
echo "
";
date_default_timezone_set("Asia/Jakarta");
echo date_default_timezone_get();
echo " : ".time();
echo "
";
?>
Result:
Europe/Berlin : 1397553155
Asia/Jakarta : 1397553155
</div>