From e698452f3a2e5a04e291b880c2d823b098c0714a Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 1 Nov 2006 07:26:28 +0000 Subject: Bug 358703: WebService functions version and timezone should follow bugzilla standard Patch By Mads Bondo Dydensborg r=mkanat, a=myk --- contrib/bz_webservice_demo.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'contrib/bz_webservice_demo.pl') diff --git a/contrib/bz_webservice_demo.pl b/contrib/bz_webservice_demo.pl index 4b5562a0e..7b59a7efb 100755 --- a/contrib/bz_webservice_demo.pl +++ b/contrib/bz_webservice_demo.pl @@ -14,6 +14,7 @@ # The Original Code is the Bugzilla Bug Tracking System. # # Contributor(s): Marc Schumann +# Mads Bondo Dydensborg =head1 NAME @@ -145,7 +146,17 @@ minimum required version your application needs. $soapresult = $proxy->call('Bugzilla.version'); _die_on_fault($soapresult); -print 'Connecting to a Bugzilla of version ' . $soapresult->result() . ".\n"; +print 'Connecting to a Bugzilla of version ' . $soapresult->result()->{version} . ".\n"; + +=head2 Checking Bugzilla's timezone + +To make sure that you understand the dates and times that Bugzilla returns to you, you may want to call C. + +=cut + +$soapresult = $proxy->call('Bugzilla.timezone'); +_die_on_fault($soapresult); +print 'Bugzilla\'s timezone is ' . $soapresult->result()->{timezone} . ".\n"; =head2 Logging In and Out -- cgit v1.2.3-24-g4f1b