Fix datetime comparison in relative datetime functions. Closes #2987,#3514
Fix datetime comparison in relative datetime functions.
Closes #2987,#3514

tenkoma/cakephp,burriko/cakephp,CakeDC/cakephp,ionas/cakephp,jeffblack360/cakephp,timhoeppner/cakephp,bravo-kernel/cakephp,justinyost/cakephp,timhoeppner/cakephp,ndm2/cakephp,eryw/cakephp,et304383/passbolt_api,thinkingmedia/cakephp,petteyg/cakephp,web-player/cakephp,gmponos/cakephp,cakephp/cakephp,mvdriel/cakephp,davidyell/cakephp,jjj117/cakephp,pbaire/cakephp,eboominathan/cakephp,web-player/cakephp,jerems02/cakephp,CVO-Technologies/cakephp,CVO-Technologies/cakephp,khoimt/cakephp-study,ndm2/cakephp,jerems02/cakephp,khoimt/cakephp-study,jjj117/cakephp,tgr0ss/cakephp,petteyg/cakephp,dakota/cakephp,Balachan27/cakephp,jjj117/cakephp,adopico/cakephp,ADmad/cakephp,justinyost/cakephp,thinkingmedia/cakephp,dkarvounaris/cakephp,thinkingmedia/cakephp,akintoey/cakephp,cakephp/cakephp,berrygoudswaard/cakephp,Phillaf/cakephp,web-player/cakephp,burriko/cakephp,jeffblack360/cakephp,bravo-kernel/cakephp,et304383/passbolt_api,akintoey/cakephp,elboletaire/cakephp,erikfig/cakephp,dakota/cakephp,et304383/passbolt_api,burriko/cakephp,ndm2/cakephp,michaelze/cakephp,tgr0ss/cakephp,tenkoma/cakephp,eryw/cakephp,Phillaf/cakephp,petteyg/cakephp,kumamidori/cakephp,erikfig/cakephp,adopico/cakephp,dakota/cakephp,gmponos/cakephp,dakota/cakephp,ADmad/cakephp,akintoey/cakephp,davidyell/cakephp,tisu2tisu/cakephp,Balachan27/cakephp,yinhe007/cakephp,mvdriel/cakephp,yinhe007/cakephp,et304383/passbolt_api,ndm2/cakephp,khoimt/cakephp-study,tenkoma/cakephp,nrother/cakephp,yinhe007/cakephp,mvdriel/cakephp,Phillaf/cakephp,jerems02/cakephp,et304383/passbolt_api,cakephp-fr/cakephp,adopico/cakephp,davidyell/cakephp,nrother/cakephp,CakeDC/cakephp,mvdriel/cakephp,cakephp-fr/cakephp,eryw/cakephp,garethellis36/cakephp,CVO-Technologies/cakephp,ionas/cakephp,tenkoma/cakephp,cakephp/cakephp,pbaire/cakephp,ADmad/cakephp,HavokInspiration/cakephp,elboletaire/cakephp,erikfig/cakephp,dkarvounaris/cakephp,tisu2tisu/cakephp,michaelze/cakephp,tisu2tisu/cakephp,bravo-kernel/cakephp,dkarvounaris/cakephp,ionas/cakephp,HavokInspiration/cakephp,CakeDC/cakephp,petteyg/cakephp,tgr0ss/cakephp,pbaire/cakephp,elboletaire/cakephp,nrother/cakephp,eboominathan/cakephp,HavokInspiration/cakephp,eboominathan/cakephp,justinyost/cakephp,kumamidori/cakephp,jeffblack360/cakephp,garethellis36/cakephp,ADmad/cakephp,CakeDC/cakephp,berrygoudswaard/cakephp,garethellis36/cakephp,gmponos/cakephp,berrygoudswaard/cakephp,Balachan27/cakephp,michaelze/cakephp,garethellis36/cakephp,cakephp-fr/cakephp,cakephp/cakephp,kumamidori/cakephp,timhoeppner/cakephp