From 55596ef8c29ae876c718946d54de787f32033db0 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 28 Aug 2008 04:26:13 +0000 Subject: Bug 399070: Remove the 'timezone' parameter - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/WebService/Bugzilla.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/WebService/Bugzilla.pm') diff --git a/Bugzilla/WebService/Bugzilla.pm b/Bugzilla/WebService/Bugzilla.pm index af64f4e3a..5196834df 100755 --- a/Bugzilla/WebService/Bugzilla.pm +++ b/Bugzilla/WebService/Bugzilla.pm @@ -23,7 +23,7 @@ use base qw(Bugzilla::WebService); use Bugzilla::Constants; use Bugzilla::Hook; -use Time::Zone; +use DateTime; # Basic info that is needed before logins use constant LOGIN_EXEMPT => { @@ -51,7 +51,7 @@ sub extensions { sub timezone { my $self = shift; - my $offset = tz_offset(); + my $offset = Bugzilla->local_timezone->offset_for_datetime(DateTime->now()); $offset = (($offset / 60) / 60) * 100; $offset = sprintf('%+05d', $offset); return { timezone => $self->type('string', $offset) }; -- cgit v1.2.3-24-g4f1b