no:
for date picker is date.formats.picker
for datetime picker is time.formats.picker



On Tue, Apr 9, 2013 at 4:55 PM, Gloufy <[email protected]> wrote:

> Thank you for your help
> in date_picker it's work but in datetime_picker it's doesn't work
> locale....
> date:
>   formats:
>     picker: "%e/%b/%Y"
> are you sure it's picker ?
>
>
> Le mardi 9 avril 2013 18:35:09 UTC+2, Hernán Astudillo a écrit :
>>
>> you're right. I've tested and something looks wrong there. Options are
>> being passed as html attributes instead of javascript config.
>> Luckyly, for this case, there's an easy way around this. You can use your
>> locale:
>>
>> en.yml (or whatever lang you're using)
>>
>> date:
>>   formats:
>>     default: "%d/%M/%yy"
>>
>> or if you use datetime_picker:
>>
>> date:
>>   formats:
>>     picker: "%e/%b/%Y"
>>
>> translation table to match jquery format with rails one is in
>> https://github.com/**activescaffold/active_**scaffold/blob/master/lib/**
>> active_scaffold/bridges/date_**picker/helper.rb<https://github.com/activescaffold/active_scaffold/blob/master/lib/active_scaffold/bridges/date_picker/helper.rb>
>>       DATE_FORMAT_CONVERSION = {
>>         /%a/ => 'D',
>>         /%A/ => 'DD',
>>         /%b/ => 'M',
>>         /%B/ => 'MM',
>>         /%d/ => 'dd',
>>         /%e/ => 'd',
>>         /%j/ => 'oo',
>>         /%m/ => 'mm',
>>         /%y/ => 'y',
>>         /%Y/ => 'yy',
>>         /%H/ => 'HH', # options ampm => false
>>         /%I/ => 'hh', # options ampm => true
>>         /%M/ => 'mm',
>>         /%p/ => 'tt',
>>         /%S/ => 'ss',
>>         /%[cUWwxXZz]/ => ''
>>       }
>>
>>
>>
>>
>>
>>
>>  On Tue, Apr 9, 2013 at 11:56 AM, Gloufy <[email protected]> wrote:
>>
>>> nop it's doesn't work too i've already tested.... :-/
>>>
>>> Le mardi 9 avril 2013 16:36:59 UTC+2, Hernán Astudillo a écrit :
>>>>
>>>> it's case sensitive, dateFormat :
>>>>
>>>> config.columns[:date].options= {'date:dateFormat'=>"dd/M/yy "}
>>>>
>>>>
>>>>
>>>> On Mon, Apr 8, 2013 at 9:20 PM, Gloufy <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>> How to change date format and time format with datetime_picker ?
>>>>> they are this :
>>>>> time:timeformat="HH:mm:ss"
>>>>> date:dateformat="D, dd M yy"
>>>>> in the html input and i don't know how it's arrived here
>>>>>
>>>>> and when i put config.columns[:date].options=
>>>>> {'date:dateformat'=>"dd/M/yy "} in my controller it's doesn't work... it's
>>>>> format by defaut
>>>>>
>>>>> Thank you for your help all the time you rocks !!!!
>>>>>
>>>>> Gloufy
>>>>>
>>>>>
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "ActiveScaffold : Ruby on Rails Gem" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to activescaffol...@**googlegroups.**com.
>>>>> To post to this group, send email to actives...@googlegroups.**com.
>>>>>
>>>>> Visit this group at http://groups.google.com/**group**
>>>>> /activescaffold?hl=en-US<http://groups.google.com/group/activescaffold?hl=en-US>
>>>>> .
>>>>> For more options, visit 
>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>> .
>>>>>
>>>>>
>>>>>
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "ActiveScaffold : Ruby on Rails Gem" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to activescaffol...@**googlegroups.com.
>>> To post to this group, send email to actives...@googlegroups.**com.
>>> Visit this group at http://groups.google.com/**
>>> group/activescaffold?hl=en-US<http://groups.google.com/group/activescaffold?hl=en-US>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "ActiveScaffold : Ruby on Rails Gem" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/activescaffold?hl=en-US
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to