Would be better to use the OO form `new DateTime()` here and similarly at other places.