corrected handling in current_time_in function