]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1300437 - DateTime::TimeZone::offset_as_string called incorrectly (#19)
authorDylan William Hardison <dylan@hardison.net>
Sat, 8 Oct 2016 17:01:39 +0000 (10:01 -0700)
committerDylan William Hardison <dylan@hardison.net>
Sat, 8 Oct 2016 17:06:50 +0000 (13:06 -0400)
Bugzilla/Migrate.pm
Bugzilla/Util.pm

index 0731d4fedf9ddcb1d9f3be6c920b84a29c6aef64..148567d8667ace6384b96f71fe6a1b6e844ed62a 100644 (file)
@@ -403,7 +403,7 @@ sub parse_date {
     }
     my $tz;
     if ($time[6]) {
-        $tz = Bugzilla->local_timezone->offset_as_string($time[6]);
+        $tz = DateTime::TimeZone->local_timezone->offset_as_string($time[6]);
     }
     else {
         $tz = $self->config('timezone');
index bbf4261ca221f8187663d6d1f439f12c0f61fe3a..5fe64621bc3c1d3affaf7e0dfcff1cd563bcbf73 100644 (file)
@@ -588,7 +588,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,
     );