I've faced a very weird behaviour of php date()
function.
See this code:
date_default_timezone_set('Australia/Melbourne');
echo date('P', 1475000000) . ' ' . date('P', 1475700000);
It returns +10:00 +11:00
While it must be always +10:00
. Unix timestamps don't content timezone in it that's why date()
must return just currently configured timezone.
PHP version 5.6.23
Any ideas why is that?