fixing date for autoclose