summaryrefslogtreecommitdiffstats
path: root/importxml.pl
diff options
context:
space:
mode:
Diffstat (limited to 'importxml.pl')
-rwxr-xr-ximportxml.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/importxml.pl b/importxml.pl
index 0a6aefe45..bd4aee186 100755
--- a/importxml.pl
+++ b/importxml.pl
@@ -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'} ) {