Not 100% sure, actually I'm trying to do it with the JQuery plugin now (nice 
plugin!) but I have a problem saving the dates to the db. Don't think this 
is a hobo issue, but we are already talking about it.

I have this in ../config/initializers/date_formats.rb

Time::DATE_FORMATS[:default] = "%d/%m/%Y %I:%M%p"
Date::DATE_FORMATS[:default] = "%d/%m/%Y"

and this in application.dryml

<include src="hobo-jquery" plugin="hobo-jquery" />

<extend tag="page">
    <old-page merge>
      <custom-scripts:>
        <hjq-assets/>
      </custom-scripts>
    </old-page>
</extend>

<def tag="input" for="Date">
    <hjq-datepicker dateFormat="dd/mm/yy" merge />
</def>

All the inputs for dates show the expected dd/mm/yyyy format, but when i try 
to save the new value it swap the day and month. (I see this when I'm saving 
12/09/2011 and after the save I see this in the db 09/12/2011) Of course 
when I save 13/09/2011 It saves a nil value.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/lz9BDjKSIZkJ.
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.

Reply via email to