replace $now with $submittime

$now is not defined on this branch.