Fix syntax & time format errors