gtop00:
I think I have a work-around for your date issue...
Open your www/include/calendarjs.php and look around lines 86-87 for:
Calendar._TT["DEF_DATE_FORMAT"] = "[color=CC0000][b]F j Y[/b][/color]"; <---my setting
Calendar._TT["TT_DATE_FORMAT"] = "[color=CC0000][b]F j Y[/b][/color]"; <---my setting
Open your www/class/xoopsform/formdateselect.php and look around line 62 for:
return ".$this->
getName()."' id='".$this->getName()."' size='".$this->getSize()."'
maxlength='".$this->getMaxlength()."' value='".date("[color=CC0000][b]F j Y[/b][/color]", $this->
getValue())."'".$this->getExtra()." />'Calendar ' onclick='return showCalendar("".$this->getName()."");'>";
(lines will be longer---I moved the code around so it doesn't stretch the page here)
What you'll need to do is change
both formats to the same setting in each file and it should work for you.
My setting (F j Y) displays the date as May 25 2005. The following are the various date formats you should be able to use:
'D d M, Y' displays Sun 18 Aug, 2002
'D d M, Y g:i a' displays Sun 18 Aug, 2002 4:38 pm
'D d M, Y H:i', displays Sun 18 Aug, 2002 16:38
'l d M, Y', displays Sunday 18 Aug, 2002
'l d M, Y g:i a', displays Sunday 18 Aug, 2002 4:38 pm
'l d M, Y H:i', displays Sunday 18 Aug, 2002 16:38
'D M d, Y', displays Sun Aug 18, 2002
'D M d, Y g:i a', displays Sun Aug 18, 2002 4:38 pm
'D M d, Y H:i', displays Sun Aug 18, 2002 16:38
'j F Y', displays 18 August 2002
'j F Y, g:i a', displays 18 August 2002, 4:38 pm
'j F Y, H:i', displays 18 August 2002, 16:38
'jS F Y', displays 18th August 2002
'jS F Y, g:i a', displays 18th August 2002, 4:38 pm
'jS F Y, H:i', displays 18th August 2002, 16:38
'F j Y', displays August 18 2002
'F j Y, g:i a', displays August 18 2002, 4:38 pm
'F j Y, H:i', displays August 18 2002, 16:38
'F jS Y', displays August 18th 2002
'F jS Y, g:i a', displays August 18th 2002, 4:38 pm
'F jS Y, H:i', displays August 18th 2002, 16:38
'j/n/Y', displays 18/8/2002
'j/n/Y, g:i a', displays 18/8/2002, 4:38 pm
'j/n/Y, H:i', displays 18/8/2002, 16:38
'n/j/Y', displays 8/18/2002
'n/j/Y, g:i a', displays 8/18/2002, 4:38 pm
'n/j/Y, H:i', displays 8/18/2002, 16:38
'Y-m-d', displays 2002-08-18
'Y-m-d, g:i a', displays 2002-08-18, 4:38 pm
'Y-m-d, H:i', displays 2002-08-18, 16:38
'j. n. Y', displays 18. 8. 2002
'j. n. Y, g:i a', displays 18. 8. 2002, 4:38 pm
'j. n. Y, H:i', displays 18. 8. 2002, 16:38
'd. m. Y', displays 18. 08. 2002
'd. m. Y, g:i a', displays 18. 08. 2002, 4:38 pm
'd. m. Y, H:i', displays 18. 08. 2002, 16:38
Remember, change
both settings in each file or it won't work. FYI, I also had to change my 'start' year in calendarjs.php to 2005 for this to work. I'm not sure if it will work if you're using 1970 as your 'start' year. Good luck.
Below is a screen shot (blurry because its reduced in size) of how we're using
philou's Formulaire module: