Script Error - Invalid time format

Can you post more of your script? Sometimes it doesn’t show the error on the right line