Ticket #4158 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

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

Reported by: josephscott Owned by: anonymous
Priority: normal Milestone: 2.2
Component: XML-RPC Version:
Severity: normal Keywords:
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

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

Change History

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

GMT with out the Z

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.

Update GMT fixes

Previous attachment didn't upload correctly.

comment:3   ryan5 years ago

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

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

comment:4   ryan5 years ago

  • Status changed from closed to reopened
  • Resolution fixed deleted

Re-open for 2.2 consideration.

comment:5   ryan5 years ago

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

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

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