Fix misplaced to_f in current_time