Michael Koziarski wrote:
> #xmlschema was aliased to #to_s for Date, which seems odd; making it
> work like Time#xmlschema seems to make more sense.
Can I get a commit on this? Any issues?
The .to_s was deliberate as the iso 8601 format for Dates without Time is
CCYY-MM-DD which is the same output as .to_s?
Ah. Any feedback then on my other question, which was how in general we
deal with Time, given that on some platforms you can't get a Time before
1972?
What do you think about the Oracle adapter just always returning Time
(and never Date), since there isn't a real way to determine that a Date
is what's intended?
Only real drawback I can see is the allowed range -- ie., a Date will
work if folks are storing really old dates, Time won't. This could be
handled by allowed the user to force a particular column to be treated
as a Date, though that still breaks if folks are storing older datetimes.
Or it could just rescue a range error and return a Date in that case.
Thoughts?
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core