]> git.donarmstrong.com Git - debbugs.git/blobdiff - bin/debbugs-loadsql
fix wrong calling of from_epoch
[debbugs.git] / bin / debbugs-loadsql
index 673ec52ab94d78981424f4cbba649e47407c634a..1dd7a6aaa81e40dd5b9a5aef375228e320ab6e9f 100755 (executable)
@@ -324,7 +324,7 @@ sub add_debinfo {
             }
             my $sp = $s->resultset('SrcPkg')->find_or_create({pkg => $srcname});
             # update the creation date if the data we have is earlier
-            my $ct_date = DateTime->from_epoch($f_stat->ctime);
+            my $ct_date = DateTime->from_epoch(epoch => $f_stat->ctime);
             if ($ct_date < $sp->creation) {
                 $sp->creation($ct_date);
                 $sp->last_modified(DateTime->now);