Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Custom Date Field - Calendar bug?

Custom Date Field - Calendar bug? 16 years 5 months ago #1777

  • bah
  • bah's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Custom Date Field - Calendar bug? 16 years 5 months ago #1779

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Submit a support ticket with admin login info and we\'ll take a look. Thanks.

Please Log in or Create an account to join the conversation.

Custom Date Field - Calendar bug? 16 years 5 months ago #1801

  • lawalker
  • lawalker's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Custom Date Field - Calendar bug? 16 years 5 months ago #1846

  • bydomino
  • bydomino's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I cant even get the calendar field to pop up.
I get this
Error:\'Calendar._TT.DEF_DATE_FORMAT\' is null or not an object
and
Error:Object required

Please Log in or Create an account to join the conversation.

Custom Date Field - Calendar bug? 16 years 5 months ago #1851

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
bydomino - what version are you using?

Please Log in or Create an account to join the conversation.

Custom Date Field - Calendar bug? 16 years 1 month ago #2635

  • peetree21
  • peetree21's Avatar
  • Visitor
  • 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.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.552 seconds