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
0e4b2ce5
Commit
0e4b2ce5
authored
Apr 10, 2009
by
ghendricks%novell.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 486006 - importxml.pl must not use format_time() for deadlines
patch by ghendricks r=LpSolit a=LpSolit
parent
114db9a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Util.pm
Bugzilla/Util.pm
+4
-2
importxml.pl
importxml.pl
+1
-3
No files found.
Bugzilla/Util.pm
View file @
0e4b2ce5
...
...
@@ -445,8 +445,10 @@ sub format_time {
hour
=>
$time
[
2
],
minute
=>
$time
[
1
],
second
=>
$time
[
0
],
# Use the timezone specified by the server.
time_zone
=>
Bugzilla
->
local_timezone
});
# If importing, use the specified timezone, otherwise
# use the timezone specified by the server.
time_zone
=>
Bugzilla
->
local_timezone
->
offset_as_string
(
$time
[
6
])
||
Bugzilla
->
local_timezone
});
# Now display the date using the given timezone,
# or the user's timezone if none is given.
...
...
importxml.pl
View file @
0e4b2ce5
...
...
@@ -87,7 +87,6 @@ use Bugzilla::Status;
use
MIME::
Base64
;
use
MIME::
Parser
;
use
Date::
Format
;
use
Getopt::
Long
;
use
Pod::
Usage
;
use
XML::
Twig
;
...
...
@@ -803,8 +802,7 @@ sub process_bug {
# Process time fields
if
(
$params
->
{
"timetrackinggroup"
}
)
{
my
$date
=
format_time
(
$bug_fields
{
'deadline'
},
"%Y-%m-%d"
)
||
undef
;
my
$date
=
validate_date
(
$bug_fields
{
'deadline'
}
)
?
$bug_fields
{
'deadline'
}
:
undef
;
push
(
@values
,
$date
);
push
(
@query
,
"deadline"
);
if
(
defined
$bug_fields
{
'estimated_time'
}
)
{
...
...
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