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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
adcfe9f1
Commit
adcfe9f1
authored
8 years ago
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
Show 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 {
...
@@ -403,7 +403,7 @@ sub parse_date {
}
}
my
$tz
;
my
$tz
;
if
(
$time
[
6
])
{
if
(
$time
[
6
])
{
$tz
=
Bugzilla
->
local_timezone
->
offset_as_string
(
$time
[
6
]);
$tz
=
DateTime::
TimeZone
->
local_timezone
->
offset_as_string
(
$time
[
6
]);
}
}
else
{
else
{
$tz
=
$self
->
config
(
'timezone'
);
$tz
=
$self
->
config
(
'timezone'
);
...
...
This diff is collapsed.
Click to expand it.
Bugzilla/Util.pm
View file @
adcfe9f1
...
@@ -588,7 +588,7 @@ sub datetime_from {
...
@@ -588,7 +588,7 @@ sub datetime_from {
second
=>
defined
(
$time
[
0
])
?
int
(
$time
[
0
])
:
undef
,
second
=>
defined
(
$time
[
0
])
?
int
(
$time
[
0
])
:
undef
,
# If a timezone was specified, use it. Otherwise, use the
# If a timezone was specified, use it. Otherwise, use the
# local timezone.
# local timezone.
time_zone
=>
Bugzilla
->
local_timezone
->
offset_as_string
(
$time
[
6
])
time_zone
=>
DateTime::
TimeZone
->
offset_as_string
(
$time
[
6
])
||
Bugzilla
->
local_timezone
,
||
Bugzilla
->
local_timezone
,
);
);
...
...
This diff is collapsed.
Click to expand it.
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