Fix compatability of id\DateTime with \DateTime