Answer the question
In order to leave comments, you need to log in
PHP timezone Etc/GTM: how?
Today I discovered a strange thing. This may be a well-known feature, of course, but
the Japan Timezone is GMT+9
www.timeanddate.com/worldclock/city.html?l=Tokyo
According to the documentation www.php.net/manual/en/timezones.others.php
we can do So
new DateTime('now', new DateTimeZone('Etc/GMT+9'));
Please do not use any of the timezones listed here (besides UTC), they only exist for backward compatible reasons.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question