summaryrefslogtreecommitdiff
path: root/includes/xmlrpc.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-21 21:35:43 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-21 21:35:43 +0000
commitd52bcb63cc7d8de9dfb5ca036e229609464c9b63 (patch)
tree6ff8ec1990c94894bc7982ac54e4d0f9ef3c7fbe /includes/xmlrpc.inc
parent7a5c5b83a72d8c0e717ab3631af7430bcefe55d2 (diff)
downloadbrdo-d52bcb63cc7d8de9dfb5ca036e229609464c9b63.tar.gz
brdo-d52bcb63cc7d8de9dfb5ca036e229609464c9b63.tar.bz2
- Patch #37766 by Thomas Ilsche: fixed date handling in XML-RPC backend.
Diffstat (limited to 'includes/xmlrpc.inc')
-rw-r--r--includes/xmlrpc.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc
index a645ff488..9ab6be402 100644
--- a/includes/xmlrpc.inc
+++ b/includes/xmlrpc.inc
@@ -331,6 +331,7 @@ 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');
}
else {
$xmlrpc_date->year = substr($time, 0, 4);
@@ -339,8 +340,8 @@ function xmlrpc_date($time) {
$xmlrpc_date->hour = substr($time, 9, 2);
$xmlrpc_date->minute = substr($time, 12, 2);
$xmlrpc_date->second = substr($time, 15, 2);
+ $xmlrpc_date->iso8601 = $time;
}
- $xmlrpc_date->iso8601 = $time;
return $xmlrpc_date;
}