DateTime, but I don't know where to report it.
I have a standalone file to demonstrate the bug, but the punch line is
that this code:
TestRecord.create!(:f_datetime => (expected = DateTime.jd(2000000)))
found = TestRecord.first.f_datetime
puts("expected == found => #{expected == found}")
puts("expected = #{expected.to_formatted_s(:rfc822)}")
puts("found = #{found.to_formatted_s(:rfc822)}")
generates this response:
expected == found => true
expected = Wed, 14 Sep 0763 00:00:00 +0000
found = Sat, 14 Sep 0763 00:00:00 +0000
So. The dates are equal, but was that day a Wednesday or a Saturday?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.