summaryrefslogtreecommitdiff
path: root/includes/xmlrpc.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-09 21:52:43 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-09 21:52:43 +0000
commit8e765744e863811b9835b29dfb11247c5ad77c89 (patch)
treea732c678b901e21a3b215133e55a05ff1843f93a /includes/xmlrpc.inc
parent2669c24bd46bcdf27a84345e78b1dad12d5d150a (diff)
downloadbrdo-8e765744e863811b9835b29dfb11247c5ad77c89.tar.gz
brdo-8e765744e863811b9835b29dfb11247c5ad77c89.tar.bz2
#207991 by Rok Zlender: xmlrpc_date did not parse dates well
Diffstat (limited to 'includes/xmlrpc.inc')
-rw-r--r--includes/xmlrpc.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc
index 38704bc4a..19ccd445a 100644
--- a/includes/xmlrpc.inc
+++ b/includes/xmlrpc.inc
@@ -387,17 +387,17 @@ function xmlrpc_date($time) {
$xmlrpc_date->hour = date('H', $time);
$xmlrpc_date->minute = date('i', $time);
$xmlrpc_date->second = date('s', $time);
- $xmlrpc_date->iso8601 = date('Ymd\TH:i:s');
+ $xmlrpc_date->iso8601 = date('Ymd\TH:i:s', $time);
}
else {
+ $xmlrpc_date->iso8601 = $time;
$time = str_replace(array('-', ':'), '', $time);
$xmlrpc_date->year = substr($time, 0, 4);
$xmlrpc_date->month = substr($time, 4, 2);
$xmlrpc_date->day = substr($time, 6, 2);
$xmlrpc_date->hour = substr($time, 9, 2);
$xmlrpc_date->minute = substr($time, 11, 2);
- $xmlrpc_date->second = substr($time, 14, 2);
- $xmlrpc_date->iso8601 = $time;
+ $xmlrpc_date->second = substr($time, 13, 2);
}
return $xmlrpc_date;
}