I am unable to get the custom date field calendar to work. The calendar will pop up, but when a date field is selected, the value that is returned is \'y-mm-dd\'. Is this a bug? Or am I missing a set up or config?
Thx
DT Register version 2.2.3 (legacy)
Joomla 1.5.3
Custom Field: Edit
Details
Name: Birth
Field Type: Date
Size: 10
Label: Birth Date
I had this same issue and corrected it myself after submitting two tickets on the same issue. The problem is with the parameter to the Javascript showCalendar(xx, \'y-mm-dd\') function. The \'y-mm-dd\' string is incorrect; it should be \'%y-%mm-%dd\'. Here are the notes I made for myself as I have had to start doing this with this product. Please make note of the additional comments I made regarding the <input> tag missing the > at its end.
Hope this is helpful...
Issue: Calendar picker inserts y-m-d literally in the date field when date is selected from popup calendar
Reported: 06/23/2008
State: resolved
Resolution: date format in showCalendar parameter was incorrect. previous value \'y-m-d\', should be %y-%m-%d. Added new constant to language file
define(\"DT_CALENDAR_DATE_FORMAT\", \"%m-%d-%Y\")
Note the capital Y in the format which gives you a four digit year as opposed to two (e.g. mm-dd-yyyy)
Additionally the <input> tag for the field was missing the closing > causing a malformatted (bad html) input field to be rendered.
Modified the following lines of code for bad input field in dtregister.php
3063, 5264, 11712, 13255, 16069, 19851
Modified the following lines of code for bad date format in dtregister.php
3065, 5266, 11714, 13257, 16071, 19853
Custom Date Field - Calendar bug?
16 years 1 month ago #2635
peetree21
Visitor
I can confirm this is still happening with J1.5.7 (legacy on), Jevents 1.4.3 and DT Register 2.3.
Ill submit a support ticket, but probably just do the fix explained above now. So if DTH Admin can fix this for future releases and also let me know if the fix above is not the correct solution.