From 5cc966ca519dcf56129c03f01e76acebcf3fb166 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Wed, 5 Mar 2008 20:38:02 +0100 Subject: [PATCH] XMLRPC: fix for IXR_Date which returned a wrong formatted UTC timestamp darcs-hash:20080305193802-23886-b786952c122c36e63676dd82d771494d763b9569.gz --- inc/IXR_Library.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php index e46ebb20a9..cf8c6716c5 100644 --- a/inc/IXR_Library.php +++ b/inc/IXR_Library.php @@ -585,8 +585,8 @@ function IXR_Date($time) { } function parseTimestamp($timestamp) { $this->year = date('Y', $timestamp); - $this->month = date('Y', $timestamp); - $this->day = date('Y', $timestamp); + $this->month = date('m', $timestamp); + $this->day = date('d', $timestamp); $this->hour = date('H', $timestamp); $this->minute = date('i', $timestamp); $this->second = date('s', $timestamp); @@ -600,7 +600,7 @@ function parseIso($iso) { $this->second = substr($iso, 15, 2); } function getIso() { - return $this->year.$this->month.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second; + return $this->year.'-'.$this->month.'-'.$this->day.'T'.$this->hour.':'.$this->minute.':'.$this->second; } function getXml() { return ''.$this->getIso().'';