11
barryc
Re: Clickable calendar icon not appearing in extcal
  • 2010/2/14 19:36

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


[Edit]This message got entered twice inadvertently - see the next message.

barryc

12
barryc
Re: Clickable calendar icon not appearing in extcal
  • 2010/2/14 20:18

  • barryc

  • Just can't stay away

  • Posts: 480

  • Since: 2004/3/20


I'm no programmer, so I can't answer that. The code that generates the wrong date format seems to be this, 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;


This seems to simply test whether the numbers used in the date are correct. That shouldn't be causing the problem.

I have been working on the assumption that the problem is in the way the date is written, either 2010/2/14 or 2010-02-14 but manually entering it in either format produces the error. I'm beginning to wonder if this might be a field type mismatch. In other words, when one uses the drop down calendar, does that enter the date as the same field type as when one types it in manually? Using the drop down calendar is the only way the date will be accepted.

BTW, I posted this twice inadvertently so deleted the content of the previous message. This one was clearer.

barryc

Login

Who's Online

243 user(s) are online (175 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits