Fixed Start and endtime not converting to integer