Commit 0d22ef69 authored by Dylan William Hardison's avatar Dylan William Hardison Committed by GitHub

Bug 1300437 - DateTime::TimeZone::offset_as_string called incorrectly (#19)

parent 81711939
......@@ -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');
......
......@@ -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,
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment