google-code-export / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Calendar should create a datetime value in a form instead of string #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Include calendar in form like so: <%= f.calendar_date_select
:start_date, :embedded => true %>
2. Fill out form, selecting a date and time for "start_date" and submit
3. If start_date is supposed to be a datetime object, you get an error. 

What is the expected output? What do you see instead?
If I select, using the calendar, a date and time of February 24, 2010 12:30
PM, the calendar should understand that this is "2010-24-02 12:30:00" and
the form should accept it. After all, I am using this calendar to select a
date on my form, not a string.

Instead, the form submits "February 24, 2010 12:30 PM" as the value for
start_date. This is a string, and not a valid datetime.

Original issue reported on code.google.com by flintcsci@gmail.com on 24 Feb 2010 at 5:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by timchar...@gmail.com on 24 Feb 2010 at 8:10