summaryrefslogtreecommitdiff
path: root/includes/xmlrpc.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-10-15 13:56:08 +0000
committerDries Buytaert <dries@buytaert.net>2008-10-15 13:56:08 +0000
commit305d14412cb85673934800fef40f77443c348a01 (patch)
treec3ce9659ad5ebc8a97ce16463e9b195c2fe9a407 /includes/xmlrpc.inc
parenta461097c28813d4f2041b0306e82b00d7e250386 (diff)
downloadbrdo-305d14412cb85673934800fef40f77443c348a01.tar.gz
brdo-305d14412cb85673934800fef40f77443c348a01.tar.bz2
- Patch #321165 by Dave Reid: fixed exceptions in XML-RPC library and its tests.
Diffstat (limited to 'includes/xmlrpc.inc')
-rw-r--r--includes/xmlrpc.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc
index 4895e9802..25e043da4 100644
--- a/includes/xmlrpc.inc
+++ b/includes/xmlrpc.inc
@@ -381,13 +381,13 @@ function xmlrpc_date($time) {
$xmlrpc_date->is_date = TRUE;
// $time can be a PHP timestamp or an ISO one
if (is_numeric($time)) {
- $xmlrpc_date->year = date('Y', $time);
- $xmlrpc_date->month = date('m', $time);
- $xmlrpc_date->day = date('d', $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', $time);
+ $xmlrpc_date->year = gmdate('Y', $time);
+ $xmlrpc_date->month = gmdate('m', $time);
+ $xmlrpc_date->day = gmdate('d', $time);
+ $xmlrpc_date->hour = gmdate('H', $time);
+ $xmlrpc_date->minute = gmdate('i', $time);
+ $xmlrpc_date->second = gmdate('s', $time);
+ $xmlrpc_date->iso8601 = gmdate('Ymd\TH:i:s', $time);
}
else {
$xmlrpc_date->iso8601 = $time;