[wp-trac] [WordPress Trac] #39595: date_default_timezone_set in wp-settings.php is set prematurely and ignorantly, regardless of other defined settings

WordPress Trac noreply at wordpress.org
Mon Jan 16 00:44:41 UTC 2017


#39595: date_default_timezone_set in wp-settings.php is set prematurely and
ignorantly, regardless of other defined settings
-------------------------------+------------------------------
 Reporter:  mkormendy          |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Date/Time          |     Version:  4.7.1
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by dd32):

 * keywords:   => reporter-feedback


Comment:

 All I can say here, is yes, it's intentional that we force the PHP
 timezone to UTC. It's not a bug, it's not being set too early, it's
 intentional.
 WordPress expects that the base timezone is set to UTC for it's own
 calculations, and has forcibly set the timezone for ~7years since [12315]
 / #10940

 Now, Can you boil down your actual issue to something much more concise so
 we can understand what the actual issue you face is? Is it that the PHP
 logs have a UTC timestamp?

 Setting a servers localdate to something other than UTC is a recipe for
 disaster IMHO, and probably not something we're going to really support in
 any manner of form anytime soon.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39595#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list