WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4158 closed enhancement (fixed)

Change metaWeblog.* and wp.* dateCreated fields in XML-RPC to GMT

Reported by: josephscott Owned by:
Milestone: 2.2 Priority: normal
Severity: normal Version:
Component: XML-RPC Keywords:
Focuses: Cc:

Description

Use post_date_gmt instead of post_date in the following XML-RPC methods:

  • wp.getPage
  • wp.getPageList
  • metaWeblog.getPost
  • metaWeblog.getRecentPosts
  • metaWeblog.getRecentPostTitles

Attachments (4)

xmlrpc.php-diff (2.0 KB) - added by josephscott 7 years ago.
xmlrpc.2.php-diff (2.0 KB) - added by josephscott 7 years ago.
GMT with out the Z
xmlrpc.3.php-diff (1.9 KB) - added by josephscott 7 years ago.
Update GMT fixes
xmlrpc.4.php-diff (2.8 KB) - added by josephscott 7 years ago.
Previous attachment didn't upload correctly.

Download all attachments as: .zip

Change History (10)

josephscott7 years ago

comment:1 josephscott7 years ago

After more feedback this may not be a a good solution, for now I want to hold off on this.

josephscott7 years ago

GMT with out the Z

comment:2 josephscott7 years ago

Sounds like the generally accepted format amount XML-RPC clients is to expect date/time in GMT, but to not use the Z that would indicate such. So the second diff is the same as the first but without the Z.

josephscott7 years ago

Update GMT fixes

josephscott7 years ago

Previous attachment didn't upload correctly.

comment:3 ryan7 years ago

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

(In [5292]) Use GMT in XML-RPC dateCreated fields. Props Joseph Scott. fixes #4158 for 2.3

comment:4 ryan7 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Re-open for 2.2 consideration.

comment:5 ryan7 years ago

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

(In [5305]) Use GMT in XML-RPC dateCreated fields. Props Joseph Scott. fixes #4158 for 2.2

comment:6 markjaquith7 years ago

(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.