WordPress.org

Make WordPress Core

Opened 21 months ago

Last modified 10 months ago

#21411 new defect (bug)

Current Local Time for Port-au-Prince, Haiti is incorrect.

Reported by: pnommensen Owned by: patrick@…
Milestone: Awaiting Review Priority: normal
Severity: minor Version: 3.4.1
Component: Date/Time Keywords: close
Focuses: Cc:

Description

When the Port-au-Prince Timezone is selected via wp-admin/options-general.php the Local Time is one hour behind. Please see http://wwp.greenwichmeantime.com/time-zone/caribbean/haiti/time-haiti/ for the correct local time.

Yes, the problem occurs even when all plugins are deactivated and the default theme is activated.

Change History (4)

comment:1 dd3221 months ago

  • Component changed from General to Date/Time

Works for me, WordPress reports 21:15, the linked site reports 9:15pm

As for why it doesn't work for you, either:

  • The server time is incorrect, causing PHP to return the incorrect timestamp
  • The servers timezone file is incorrect or out of date, leading to it reporting a incorrect time offset (It should be reporting GMT-5hr)

What does WordPress report the UTC time as? It should report the time shown here: http://wwp.greenwichmeantime.com/ If it doesn't, the problem is the first point above, if it reports it correct, but reports the Local time incorrect, it's the second point above

Version 0, edited 21 months ago by dd32 (next)

comment:2 dd3221 months ago

  • Keywords close added

Actually, it's most likely definitely the 2nd point above, The Daylight savings dates for Haiti changed in March 2012 (See the bottom of your link), chances are, the PHP version you're running has an out of date Timezone for Haiti.

Last edited 21 months ago by dd32 (previous) (diff)

comment:3 pnommensen21 months ago

Thanks for your response. I have php v. 5.2.17 from 06 January 2011 installed. (http://www.rfahaiti.org/phpinfo.php) The UTC time listed is 04:50 right now, same as http://wwp.greenwichmeantime.com/.

comment:4 mbijon10 months ago

Possibly related: #20328

Do the tests added in http://core.trac.wordpress.org/changeset/1233/tests reproduce this behavior?

Note: See TracTickets for help on using tickets.