[wp-trac] [WordPress Trac] #13538: Timezone won't appear even if propper PHP date formatting selected
WordPress Trac
wp-trac at lists.automattic.com
Tue May 25 18:35:25 UTC 2010
#13538: Timezone won't appear even if propper PHP date formatting selected
--------------------------+-------------------------------------------------
Reporter: avibrazil | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Date/Time | Version: 2.9.2
Severity: normal | Keywords: timezone
--------------------------+-------------------------------------------------
If you put your site under some Timezone on /wp-admin/options-general.php
and use a PHP date formatting as "r", you always get wrong +0000 offset.
For example, I use GMT+3 or São Paulo as my Timezone and "r" as the PHP
date formatting. I was expecting dates and times as:
"Tue, 25 May 2010 15:20:49 -0300"
but I'm getting:
"Tue, 25 May 2010 15:20:49 +0000"
Note that the time is correct and the same - 15:20:49. Only the Timezone
is wrong.
The funny thing is that in the same admin page there is an warning about
daylight savings time for my city (São Paulo) that uses the same "r"
formating and is correctly printed as:
{{{
Daylight savings time begins on: Sun, 10 Oct 2010 01:00:00 -0200 Sun, 10
Oct 2010 01:00:00 -0200
}}}
So there is nothing wrong with the PHP installation of my ISP (DreamHost).
I was also informed that WP3 also suffers by this same issue but I can't
confirm.
You can see the impact of this bug on the published date and time line
right after the title of every post on my blog, for example:
http://avi.alkalay.net/2009/06/mp3-mass-tagging-and-organization.html
Timezone is important for me because I use to travel and post from
different timezones and would like to keep this information as part of the
metadata of the post.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13538>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list