Remove warning for date() with new version of PHP