fixing datetime model syntax