diff options
author | Michael Klier <chi@chimeric.de> | 2008-03-05 20:38:02 +0100 |
---|---|---|
committer | Michael Klier <chi@chimeric.de> | 2008-03-05 20:38:02 +0100 |
commit | 5cc966ca519dcf56129c03f01e76acebcf3fb166 (patch) | |
tree | d86be4c6bd449e96cc4c5e55244cc7ba3f54e7f4 | |
parent | 51597811fb665e459be288068ab39bb691bf6de1 (diff) | |
download | rpg-5cc966ca519dcf56129c03f01e76acebcf3fb166.tar.gz rpg-5cc966ca519dcf56129c03f01e76acebcf3fb166.tar.bz2 |
XMLRPC: fix for IXR_Date which returned a wrong formatted UTC timestamp
darcs-hash:20080305193802-23886-b786952c122c36e63676dd82d771494d763b9569.gz
-rw-r--r-- | inc/IXR_Library.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/IXR_Library.php b/inc/IXR_Library.php index e46ebb20a..cf8c6716c 100644 --- a/inc/IXR_Library.php +++ b/inc/IXR_Library.php @@ -585,8 +585,8 @@ class IXR_Date { } 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 @@ class IXR_Date { $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 '<dateTime.iso8601>'.$this->getIso().'</dateTime.iso8601>'; |