have changed event.php based on trabis post but still received the wrong date format error
using 2.5.4 beta/extcal 2.22
Quote:
Don't forget to remove every check for "invalid format date". They wont be necessary. '/' and '-' are valid separators.
Sorry if I was not explicit enough.
Search for _MD_EXTCAL_WRONG_DATE_FORMAT in the source code, you should find it in post.php and in admin/event.php:
// If the date format is wrong
if (
!preg_match('`[0-9]{4}-[01][0-9]-[0123][0-9]`', $_POST['event_start']['date'])
|| !preg_match('`[0-9]{4}-[01][0-9]-[0123][0-9]`', $_POST['event_end']['date'])
) {
redirect_header(
'index.php', 3, _MD_EXTCAL_WRONG_DATE_FORMAT . "<br />"
. implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())
);
exit;
}
Remove this code in both files.
You can use this version(2.30) with this and other bugs corrected:
http://xoops.svn.sourceforge.net/viewvc/xoops/XoopsModules/extcal/branches/mamba/extcal/?sortby=date