In my php.ini I've set:
date.timezone = "Etc/UTC"
And the server's time is UTC+0 too, but when I try this script to get the timezone:
<?php print(date_default_timezone_get()); ?>
it returns
Europe/Berlin
which is UTC+2
and not UTC+0
and I don't see how it gets there.
Just to clearify:
- I have saved the the correct file at the correct path and restarted my server
- I do not want to modify my scripts, because I already used
date()
way to often - I want the time to be
UTC+0
for PHP just by changing the configuration - I want it to be
UTC+0
at all times, ignoring Summer-/Wintertime