From 0e4b2ce5a8e14a95d0eac6776731bcb37fec2741 Mon Sep 17 00:00:00 2001 From: "ghendricks%novell.com" <> Date: Fri, 10 Apr 2009 22:29:58 +0000 Subject: Bug 486006 - importxml.pl must not use format_time() for deadlines patch by ghendricks r=LpSolit a=LpSolit --- Bugzilla/Util.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 7ed20c875..a725a8e21 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -445,8 +445,10 @@ sub format_time { hour => $time[2], minute => $time[1], second => $time[0], - # Use the timezone specified by the server. - time_zone => Bugzilla->local_timezone}); + # If importing, use the specified timezone, otherwise + # use the timezone specified by the server. + time_zone => Bugzilla->local_timezone->offset_as_string($time[6]) + || Bugzilla->local_timezone}); # Now display the date using the given timezone, # or the user's timezone if none is given. -- cgit v1.2.3-24-g4f1b