From 0d22ef69987f85fca6df9d33f039ffc00a13a5c9 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 8 Oct 2016 10:01:39 -0700 Subject: Bug 1300437 - DateTime::TimeZone::offset_as_string called incorrectly (#19) --- Bugzilla/Util.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Util.pm') diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 1a867c5ee..78376c6fe 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -607,7 +607,7 @@ sub datetime_from { second => defined($time[0]) ? int($time[0]) : undef, # If a timezone was specified, use it. Otherwise, use the # local timezone. - time_zone => Bugzilla->local_timezone->offset_as_string($time[6]) + time_zone => DateTime::TimeZone->offset_as_string($time[6]) || Bugzilla->local_timezone, ); -- cgit v1.2.3-24-g4f1b