t;[EMAIL PROTECTED]> wrote:
Any opinions on this?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Silva
Sent: Tuesday, July 18, 2006 8:37 PM
To: rails-core@lists.rubyonrails.org
Subject: RE: [Rails-core] AR Dates and ParseDate
Hi Koz,
The date value c
Any opinions on this?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Silva
Sent: Tuesday, July 18, 2006 8:37 PM
To: rails-core@lists.rubyonrails.org
Subject: RE: [Rails-core] AR Dates and ParseDate
Hi Koz,
The date value coming in is from an html
"=>"'2006-07-18'"} <=== NOTE THE GOOD YEAR
>>
Rails date helpers would never run into this because they define the dates
via a select box, but I don't think Rails should only accept dates via the
helpers.
Bob Silva
http://i.nfectio.us
-Original Me
Is there a reason why AR doesn't pass the guess year flag to parsedate when
casting columns? Seems to me, in the context of a DB date field, you would
always want the 4 digit year.
Right now, if you shove a date like: 07/18/06 to Rails, MySQL will get
0006-07-16, but ParseDate.parsedate('07/1