[TYPO3-mvc] Re: No Query-Result with two DateTime comparisons

Daniel Völkel d.voelkel at medienwuerfel.de
Thu Aug 28 11:12:58 CEST 2014


I could solve the problem myself, but the behaviour is still strange.

The comparsion works for:

$today = date('Y-m-d',time()); 
$enddate = date('Y-m-d',time() + 3 * 86400);

but does not work:

$today = new \DateTime('today');
$enddate = $today->add(new \DateInterval('P3D'));




More information about the TYPO3-project-typo3v4mvc mailing list