[BUGFIX] Fix PHP warning with date function in FormEngine