Index: trunk/ippScripts/scripts/chip_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/chip_imfile.pl	(revision 19932)
+++ trunk/ippScripts/scripts/chip_imfile.pl	(revision 19938)
@@ -237,5 +237,5 @@
     $command .= " -dbname $dbname" if defined $dbname;
     $command .= $stats->cmdflags();
-    $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
+    $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
 } else {
     $command = "$chiptool -tofullimfile";
@@ -276,5 +276,5 @@
             $command .= " -path_base $outroot";
             $command .= " -hostname $host" if defined $host;
-            $command .= (" -dtime_script " . (($mjd_start - DateTime->now->mjd) * 86400));
+            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
         } else {
             $command .= "$chiptool -updateprocessedimfile";
