[wp-trac] [WordPress Trac] #23384: Timezone Overwritten in wp-settings.php
WordPress Trac
noreply at wordpress.org
Mon Feb 4 22:15:05 UTC 2013
#23384: Timezone Overwritten in wp-settings.php
-----------------------------+--------------------------
Reporter: sterfry68 | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: 3.5.1 | Severity: normal
Keywords: |
-----------------------------+--------------------------
wp-settings.php, line 36:
{{{
date_default_timezone_set( 'UTC' );
}}}
appears to be overriding the timezone selected in the dashboard and held
in the options table. This code:
{{{
<?php echo date_default_timezone_get(); ?>
}}}
always returns UTC no matter what is in the options table. And when I
comment out line 36 in wp-settings, I get the correct timezone. This
problem has been verified by another user on the support forum.
I have employed a temporary fix by manually setting the timezone back to
my option before calling a date function or class.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23384>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list