Tag Archives: fix

ActiveRecord timestamp Conversions Fail — Sometimes

We recently started to see some timestamp-based tests fail seemingly at random. At first, the usual suspects in the form of time-dependencies were dragged in for a serious round of questioning, but to our surprise none of them were involved. The bad guy, it turns out, was the microsecond handling in ActiveRecord::ConnectionAdapters::Column#fast_string_to_time and ActiveRecord::ConnectionAdapters::Column#microseconds. It [...]

Posted in Rails | Also tagged , , , | 2 Comments