WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4624 closed defect (bug) (fixed)

Don't return GMT date/time in XML-RPC, breaks some clients.

Reported by: josephscott Owned by:
Milestone: 2.2.3 Priority: normal
Severity: normal Version: 2.2.2
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

There are some XML-RPC clients that simply died when processing valid GMT date/times with a Z on the end. So in the interest of minimizing the number of broken clients those changes need to be undone, [5305] and [5514].

I have patches for the 2.2 branch as well trunk.

Attachments (3)

xmlrpc.php.diff (1.9 KB) - added by josephscott 7 years ago.
xmlrpc.php-2.2.diff (1.9 KB) - added by josephscott 7 years ago.
gmt-xmlrpc.php.diff (4.6 KB) - added by josephscott 7 years ago.

Download all attachments as: .zip

Change History (7)

josephscott7 years ago

josephscott7 years ago

comment:1 foolswisdom7 years ago

  • Milestone changed from 2.2.2 to 2.2.3
  • Version set to 2.2.2

comment:2 Nazgul7 years ago

  • Keywords has-patch added

josephscott7 years ago

comment:3 josephscott7 years ago

  • Cc josephscott added

I've uploaded a new patch against trunk (gmt-xmlrpc.php.diff) that reverts the dateCreated field back to blog time (instead of GMT) and adds a new field, date_created_gmt, that is always GMT (even though it has no time zone info).

comment:4 markjaquith7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5888]) Send dateCreated as local blog time, add date_created_gmt with GMT value. Props josephscott. fixes #4624. refs #4158, #4314

Note: See TracTickets for help on using tickets.