]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 848063: [Oracle] importxml.pl fails with ORA-01830: comment timestamps are not...
authorMateusz Kuśmierczyk <mateusz.kusmierczyk@gmail.com>
Tue, 3 Sep 2013 09:45:44 +0000 (11:45 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 3 Sep 2013 09:45:44 +0000 (11:45 +0200)
r=LpSolit a=sgreen

importxml.pl

index 896848b0a02e2788ea5b35e969be69be2c07e611..50f639fc5991ccdbe996954d7b15811fb04612da 100755 (executable)
@@ -498,7 +498,7 @@ sub process_bug {
     foreach my $comment ( $bug->children('long_desc') ) {
         Debug( "Parsing Long Description", DEBUG_LEVEL );
         my %long_desc = ( who       => $comment->field('who'),
-                          bug_when  => $comment->field('bug_when'),
+                          bug_when  => format_time($comment->field('bug_when'), '%Y-%m-%d %T'),
                           isprivate => $comment->{'att'}->{'isprivate'} || 0 );
 
         # If the exporter is not in the insidergroup, keep the comment public.