I would like to use the hjq-datepicker tag with dates in 'dd/mm/y' format such as '13/07/11'. I can easily change these tags in the application.dryml file to change the format coming from the date picker that gets put in the text field:
Changes these tags: <def tag="input" for="Date"><hjq-datepicker dateFormat="yy-mm-dd" firstDay="1" merge/></def> <def tag="edit" for="Date"><hjq-datepicker dateFormat="yy-mm-dd" firstDay="1" merge/></def> To this: <def tag="input" for="Date"><hjq-datepicker dateFormat="dd-mm-y" firstDay="1" merge/></def> <def tag="edit" for="Date"><hjq-datepicker dateFormat="dd-mm-y" firstDay="1" merge/></def> The problem is that I can't seem to find a way to customize Rails 3 or Hobo 1.3 so that they accept the dates in that format and I end up saving '13/07/11' as '11/07/2013' on the database. I've done some searching and found the delocalize gem, but I couldn't see how to get it working nicely with Hobo to fix the date input localization problem - it seems too low level and Rails specific. Does anyone know of a way to do this with Hobo? -- Richard -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
