WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#2036 closed defect (bug) (fixed)

IXR_Date->getIso returning incorrect data

Reported by: devlogic Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: date getIso timezone
Focuses: 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 (1)

comment:1 @ryan9 years ago

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

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

Note: See TracTickets for help on using tickets.