[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
Tue Mar 27 12:09:22 UTC 2018
#39595: date_default_timezone_set in wp-settings.php is set prematurely and
ignorantly, regardless of other defined settings
-------------------------------+------------------------------
Reporter: mkormendy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 4.7.1
Severity: minor | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by Otto42):
@romulodl As a site administrator, you don't have to change it at all,
ever. The PHP code is supposed to use UTC throughout. WordPress applies
the timezone change according to the setting in the Settings->General
page. That includes adjusting for daylight savings time, if you pick the
correct timezone choice on that page.
Basically, WordPress does the same job as PHP here, while leaving the
default timezone as UTC for consistent time calculation throughout the
rest of the system.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39595#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list