Gregor Schmidt
7/4/2007 3:46:00 PM
> And yeah, I'd look at it as a bug too. As a workaround, you can
> probably do a manual conversion...
Or actually fix the problem ;-)
This is the source of Date.today, found in the docs:
def self.today(sg=ITALY)
Time.now.__send__(:to_date).new_start(sg)
end
This obviously causes your the bug. My first idea to fix this feature
would be
def self.today(sg=ITALY)
self.parse(Time.now.to_s, false, sg)
end
It works, but I guess, it is not really efficient.
By the way:
Is there a special reason, I never understood, why to_date on Time
became private in 1.8.6?
Cheers,
Gregor Schmidt