When I want to save a birthday like 12.05.1970 I can save it. But when
I try to save older birthdays like 12.05.1969 I get the error-message
"time out of range".
Remarkable is, when I try to save the date without ruby/rails directly
in the mysl-database, there is no error-message, so it must be a kin of
ruby/rails bug.
Do somebody know a solution?
Thanks in front for every proposal for solution:-)
The DATE type is used when you need only a date value, without a time
part. MySQL retrieves and displays DATE values in 'YYYY-MM-DD' format.
The supported range is '1000-01-01' to '9999-12-31'.
are pointing to a fault in the active_record.rb of the
DHTMLCalendar-plugin:
Line 61: when Date then "'#{quoted_date(Time.local(value.year,
value.month, value.day, 0, 0, 0))}'"
else quote_without_date_cast(value, column)
Do somebody knows a solution?
While the ruby Date class has an absolutely massive range, Time
doesn't, so the plugin shouldn't really be converting a date instance
into a instance of Time (at least not without checking if it is
possible first)