fixing datetime stamp