Ticket #2036 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

IXR_Date->getIso returning incorrect data

Reported by: devlogic Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: normal Keywords: date getIso timezone
Cc:

Description

After several weeks of wondering why posts via xmlrpc were incorrectly showing up in the "future posts" section, I think I've discovered a bug in the returned data from IXR_Date->getIso: While parseIso is getting the timezone from the passed ISO date data, getIso is not returning the timezone, causing a mis-calculation wherein the post_date_gmt variable is padded by the TZ offset twice. Adding ".$this->timezone" into the return statement on line 628 of wp-includes/class-IXR.php seems to fix the problem.

This "bug" is present in the nightly build for 2005-12-07.

Change History

12/08/05 00:08:14 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [3279]) Add timezone to iso8601 timestamp. Props devlogic. fixes #2036