rails/rails — pull request #15632 by adz (2014-06-11 04:19:56+00:00)
Title: Prevent time field converting zones in changes 'was'

When changing "Time" attributes the old '_was' value (e.g. bonus_time_was) will be converted based on zone. However, in all other cases "Time" attributes do not convert zones.

The expected behaviour is to NOT convert zones due to variations across dates, even within a single zone -- see more discussion here: https://github.com/rails/rails/issues/3145#issuecomment-5400841

Original commit added here:
Dirty datetime attributes should be aware of time zone info
https://github.com/rails/rails/commit/36129f21b86db4bd69e932e586129e246c2a5ca8

Then later removed in commit slated for rails 4.(?)
remove unnecessary code
it was added in 36129f2
but isn't useful anymore as corresponding tests pass without it
https://github.com/rails/rails/commit/cb400b0c654e62c99dca1faf052c9389c58d692c

I've made the PR to rails 3-2-stable since rails 4+ seems to have rearranged the dirty.rb file considerably.