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/18/06’, true) will create the right 4-digit year.

 

Just curious…

 

Bob Silva

http://i.nfectio.us

 

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to