Skip to content

Commit

Permalink
Bug 1300437 - DateTime::TimeZone::offset_as_string called incorrectly (
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanwh committed Oct 8, 2016
1 parent 8171193 commit 0d22ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Bugzilla/Migrate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion Bugzilla/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down

0 comments on commit 0d22ef6

Please sign in to comment.