replaced printable methods with those of https://github.com/symfony/symfony/pull/10687
removed code that cannot be trusted during a \DateTime-related comparison