Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
adcfe9f1
Commit
adcfe9f1
authored
Oct 08, 2016
by
Dylan William Hardison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1300437 - DateTime::TimeZone::offset_as_string called incorrectly (#19)
parent
fe2251f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Migrate.pm
Bugzilla/Migrate.pm
+1
-1
Util.pm
Bugzilla/Util.pm
+1
-1
No files found.
Bugzilla/Migrate.pm
View file @
adcfe9f1
...
...
@@ -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'
);
...
...
Bugzilla/Util.pm
View file @
adcfe9f1
...
...
@@ -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
,
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment