Fix some unit tests and ensure all date() commands include current_time()