fixing datetime