[wp-trac] [WordPress Trac] #23384: Timezone Overwritten in wp-settings.php

WordPress Trac noreply at wordpress.org
Mon Feb 4 23:29:55 UTC 2013


#23384: Timezone Overwritten in wp-settings.php
--------------------------+------------------------------
 Reporter:  sterfry68     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by iandunn):

 * cc: ian_dunn@… (added)


Comment:

 In order to simplify timezone issues, WordPress always keeps track of time
 internally using UTC. Then, when the time is displayed it's converted the
 the local time that's defined in the Timezone setting on the General
 Settings page.

 If you're getting a UTC time back from PHP's date() function, that's
 expected. You should be using WordPress'
 [http://codex.wordpress.org/Function_Reference/current_time
 current_time()] instead.

 If that's not the problem, can you give a detailed description of the
 symptom's you're seeing? A link to the forum post you alluded to would
 also be helpful.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23384#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list