You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rails-...@googlegroups.com
I've had problems with different operating systems not supporting the same accuracy of timestamps. The details are hazy, but I think in ruby on mac timestamps are in milliseconds whereas on linux they're in nanoseconds. I think postgres is consistent about it, but your timestamps can get truncated when saving/loading from the database
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rails-...@googlegroups.com
Yeah -- I found jruby and ruby 1.9 give different results running on ubuntu.
Here are the specifics:
Jruby -- stores to milli seconds
Ruby 1.9 gave to nano seconds
Postgres was storing milli seconds.
It caused some fun in tests, but rounding the time to millis in ruby time.round(3) gave consistent testable results, and meant that times were not being truncated in the database. (instead truncating them early in ruby code)