summaryrefslogtreecommitdiff
path: root/includes/xmlrpc.inc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-11 12:32:33 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-11 12:32:33 +0000
commit3d22fe43571af02872e4aad6d4dd7e3d82a00af8 (patch)
treeae70fa20be5a340f6d4095e92dd3c59dd0b37fdc /includes/xmlrpc.inc
parent6b5364a856ca7fe3f340575c976cc839f2995bd2 (diff)
downloadbrdo-3d22fe43571af02872e4aad6d4dd7e3d82a00af8.tar.gz
brdo-3d22fe43571af02872e4aad6d4dd7e3d82a00af8.tar.bz2
#199084 by chx: better conformance with ISO date formats in our xmlrpc code
Diffstat (limited to 'includes/xmlrpc.inc')
-rw-r--r--includes/xmlrpc.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc
index 2bf8b1817..ebd19c461 100644
--- a/includes/xmlrpc.inc
+++ b/includes/xmlrpc.inc
@@ -390,12 +390,13 @@ function xmlrpc_date($time) {
$xmlrpc_date->iso8601 = date('Ymd\TH:i:s');
}
else {
+ $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, 12, 2);
- $xmlrpc_date->second = substr($time, 15, 2);
+ $xmlrpc_date->minute = substr($time, 11, 2);
+ $xmlrpc_date->second = substr($time, 14, 2);
$xmlrpc_date->iso8601 = $time;
}
return $xmlrpc_date;