From d52bcb63cc7d8de9dfb5ca036e229609464c9b63 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 21 Nov 2005 21:35:43 +0000 Subject: - Patch #37766 by Thomas Ilsche: fixed date handling in XML-RPC backend. --- includes/xmlrpc.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3