From 7f45695b62ce1cf2e5dd7805551fb45861cb2ca9 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 19 Sep 2011 23:51:46 +1200 Subject: [PATCH] Fix XMLNS on tz/list --- inc/tz/list.php | 2 +- testing/tests/timezone/5010-list.result | 6 +++--- testing/tests/timezone/5011-list.result | 6 +++--- testing/tests/timezone/5021-list.result | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/inc/tz/list.php b/inc/tz/list.php index 69fbfa05..93bd2edb 100644 --- a/inc/tz/list.php +++ b/inc/tz/list.php @@ -11,7 +11,7 @@ require_once('vComponent.php'); -$response = new XMLDocument( array("" => "urn:ietf:params:xml:ns:timezone-service") ); +$response = new XMLDocument( array("urn:ietf:params:xml:ns:timezone-service" => "") ); $tzlist = $response->NewXMLElement('timezone-list'); $tzlist->NewElement('dtstamp', gmdate('Ymd\THis\Z')); diff --git a/testing/tests/timezone/5010-list.result b/testing/tests/timezone/5010-list.result index cbdc819b..d04fa704 100644 --- a/testing/tests/timezone/5010-list.result +++ b/testing/tests/timezone/5010-list.result @@ -1,10 +1,10 @@ HTTP/1.1 200 OK Date: Dow, 01 Jan 2000 00:00:00 GMT -Content-Length: 2677 +Content-Length: 2596 Content-Type: application/xml; charset="utf-8" - + all good America/Los_Angeles @@ -78,4 +78,4 @@ Content-Type: application/xml; charset="utf-8" America/New_York (UTC-05:00) Eastern Time (US & Canada) - + diff --git a/testing/tests/timezone/5011-list.result b/testing/tests/timezone/5011-list.result index b0f47d8c..b9bd3e38 100644 --- a/testing/tests/timezone/5011-list.result +++ b/testing/tests/timezone/5011-list.result @@ -1,9 +1,9 @@ HTTP/1.1 200 OK Date: Dow, 01 Jan 2000 00:00:00 GMT -Content-Length: 239 +Content-Length: 158 Content-Type: application/xml; charset="utf-8" - + all good - + diff --git a/testing/tests/timezone/5021-list.result b/testing/tests/timezone/5021-list.result index 473cd2e3..e81aed44 100644 --- a/testing/tests/timezone/5021-list.result +++ b/testing/tests/timezone/5021-list.result @@ -3,7 +3,7 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT Content-Type: application/xml; charset="utf-8" - + all good Africa/Abidjan @@ -1840,4 +1840,4 @@ Content-Type: application/xml; charset="utf-8" all good Pacific/Wallis - + -- 2.11.4.GIT