[wp-trac] [WordPress Trac] #13300: class IXR_Date transforms invalid timestamp.
WordPress Trac
wp-trac at lists.automattic.com
Fri May 7 18:50:54 UTC 2010
#13300: class IXR_Date transforms invalid timestamp.
--------------------------+-------------------------------------------------
Reporter: nasenmann | Owner: josephscott
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9.3
Component: XML-RPC | Version: 2.9.2
Severity: normal | Keywords: IXR_Date, XML-RPC
--------------------------+-------------------------------------------------
class-IXR.php, class IXR_Date, parseIso() line 693 should look like this
to solve the problem.
function parseIso($iso) {
$this->year = substr($iso, 0, 4);
$this->month = substr($iso, 5, 2);
$this->day = substr($iso, 8, 2);
$this->hour = substr($iso, 11, 2);
$this->minute = substr($iso, 14, 2);
$this->second = substr($iso, 17, 2);
// WP adds timezone. See #2036
$this->timezone = substr($iso, 17);
}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13300>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list