fix the exception from time format