summaryrefslogtreecommitdiffstats
path: root/contrib/bz_webservice_demo.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-11-01 08:26:28 +0100
committermkanat%bugzilla.org <>2006-11-01 08:26:28 +0100
commite698452f3a2e5a04e291b880c2d823b098c0714a (patch)
treeaa41e2f77f03b026e8a5c2c6ef1fd791c7a5f448 /contrib/bz_webservice_demo.pl
parentd8370a5af3b242cedee3db8566dbfa13d7ca59d7 (diff)
downloadbugzilla-e698452f3a2e5a04e291b880c2d823b098c0714a.tar.gz
bugzilla-e698452f3a2e5a04e291b880c2d823b098c0714a.tar.xz
Bug 358703: WebService functions version and timezone should follow bugzilla standard
Patch By Mads Bondo Dydensborg <mbd@dbc.dk> r=mkanat, a=myk
Diffstat (limited to 'contrib/bz_webservice_demo.pl')
-rwxr-xr-xcontrib/bz_webservice_demo.pl13
1 files changed, 12 insertions, 1 deletions
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 <wurblzap@gmail.com>
+# Mads Bondo Dydensborg <mbd@dbc.dk>
=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<Bugzilla.timezone>.
+
+=cut
+
+$soapresult = $proxy->call('Bugzilla.timezone');
+_die_on_fault($soapresult);
+print 'Bugzilla\'s timezone is ' . $soapresult->result()->{timezone} . ".\n";
=head2 Logging In and Out