]> git.donarmstrong.com Git - debbugs.git/commitdiff
fix wrong calling of from_epoch
authorDon Armstrong <don@donarmstrong.com>
Wed, 9 Mar 2016 04:18:30 +0000 (20:18 -0800)
committerDon Armstrong <don@donarmstrong.com>
Wed, 10 Aug 2016 20:45:41 +0000 (13:45 -0700)
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);