]> 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)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2016 17:01:39 +0000 (10:01 -0700)
Bugzilla/Migrate.pm
Bugzilla/Util.pm

index b23fc5b53908a745b45c4db51360f14518254ccd..a5b08a20c017eb81bca03b9d86dd4eba2b313d02 100644 (file)
@@ -417,7 +417,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 1a867c5ee2f0b49ec3026f2a253ab16e480603db..78376c6fef616d65052587f52ceece431875056a 100644 (file)
@@ -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,
     );