Select time

2 views
Skip to first unread message

Kanniball

unread,
Jun 13, 2007, 8:42:50 AM6/13/07
to dhtml-c...@googlegroups.com
Hi!
I'm trying to get a field in a form, where user can input a date and time.
I'm using the dhtml-calendar, but I only can get the date, even when I
select hour and date.
Here is the code I'm using:

<p><label for="service_end_date">End date</label><br/>
<%= calendar_box 'service', 'end_date',
{ :class => 'date',
:date => "#{Time.now}",
:field_title => 'Birthday',
:button_title => 'Show calendar' },
{ :firstDay => 1,
:step => 1,
:showsTime => 1,
:timeFormat => "24",
:showOthers => true, }
%>
</p>

Any help???

Thanks for the attention,

Paulo Fidalgo

Jacob Vanus

unread,
Jun 14, 2007, 10:30:32 AM6/14/07
to Ruby on Rails: DHTML Calendar
Is time support included in this calendar?

Kanniball

unread,
Jun 15, 2007, 4:56:53 AM6/15/07
to dhtml-c...@googlegroups.com
Yes, at least if you add the option :showsTime => 1, you have a time selector.

Ed Moss

unread,
Jun 15, 2007, 9:53:57 AM6/15/07
to Ruby on Rails: DHTML Calendar
Let me have a look and see what is missing.

Ed.

Ed Moss

unread,
Jun 21, 2007, 9:47:26 PM6/21/07
to Ruby on Rails: DHTML Calendar
Fixed in edge branch.

On Jun 13, 6:42 am, Kanniball <o.kannibal...@gmail.com> wrote:

Kanniball

unread,
Jun 29, 2007, 9:23:04 AM6/29/07
to dhtml-c...@googlegroups.com
Now I can select the time, but I have this in the input:

2007-06-20 15:17:00 %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S

Any idea?

Florent

unread,
Jul 1, 2007, 3:12:00 AM7/1/07
to Ruby on Rails: DHTML Calendar
Hi,

I've the same problem. Each time, I reload the window there is one
more "%H:%M:%S" in the input field.
There is the same problem on the demo http://dry.4thebusiness.com/companies/list
with the active_at field.
I've another problem with the calendar_select. The select fields don't
get the values back.

I try to solve this problems but I found nothing so far.

Florent

On 29 juin, 15:23, Kanniball <o.kannibal...@gmail.com> wrote:
> Now I can select the time, but I have this in the input:
>
> 2007-06-20 15:17:00 %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S
> %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S %H:%M:%S
>
> Any idea?
>

Ed Moss

unread,
Jul 5, 2007, 1:59:56 PM7/5/07
to Ruby on Rails: DHTML Calendar
Sorry, for the delay. I was spending some time in the Yellowstone.

This should be fixed now.

On Jul 1, 1:12 am, Florent <florent.pit...@gmail.com> wrote:
> Hi,
>
> I've the same problem. Each time, I reload the window there is one
> more "%H:%M:%S" in the input field.

> There is the same problem on the demohttp://dry.4thebusiness.com/companies/list

Kanniball

unread,
Jul 7, 2007, 5:25:15 AM7/7/07
to dhtml-c...@googlegroups.com
Thanks a lot...
I've tested it and it's working like a charm...
Reply all
Reply to author
Forward
0 new messages