Fixed issue with endTime in ssm record