From 3afeac36275460eebd5ffd93836ab799ad07bb32 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 12 Jan 2004 15:18:13 +0000 Subject: [PATCH] Date comparsion was fixed to compare dates with different time zones. --- ext/soap/interop/client_round2_params.php | 4 ++-- ext/soap/interop/test.utility.php | 29 +++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/ext/soap/interop/client_round2_params.php b/ext/soap/interop/client_round2_params.php index c7a8245924..0cadd979a7 100644 --- a/ext/soap/interop/client_round2_params.php +++ b/ext/soap/interop/client_round2_params.php @@ -279,9 +279,9 @@ $soap_tests['base'][] = new SOAP_Test('echoDecimal', array('inputDecimal' => // Base echoDate # php-soap doesn't handle datetime types properly yet -$soap_tests['base'][] = new SOAP_Test('echoDate', array('inputDate' => '2001-05-24T17:31:41Z')); +$soap_tests['base'][] = new SOAP_Test('echoDate', array('inputDate' => '2001-05-24T17:31:41Z'), null, 'date_compare'); $soap_tests['base'][] = new SOAP_Test('echoDate', array('inputDate' => - soap_value('inputDate','2001-05-24T17:31:41Z',XSD_DATETIME)));#'2001-04-25T13:31:41-0700' + soap_value('inputDate','2001-05-24T17:31:41Z',XSD_DATETIME)), null, 'date_compare'); //*********************************************************** // Base echoBoolean diff --git a/ext/soap/interop/test.utility.php b/ext/soap/interop/test.utility.php index 50f85f1cd8..04f4e6d4c3 100644 --- a/ext/soap/interop/test.utility.php +++ b/ext/soap/interop/test.utility.php @@ -1,5 +1,34 @@