When testing if a certain attribute is time zone aware in the validator, also check the value of ActiveRecord::Base.time_zone_aware_types.
We have ActiveRecord::Base.time_zone_aware_types = [:datetime], hence :time types are not time zone aware. When validating times, they are still converted to CET, giving wrong validation errors.
This problem arised with the upgrade to 5.0, because skip_time_zone_conversion_for_attributes is empty in our case, which leads to the attribute being interpreted as time zone aware wrongly. In version 4.1, timeliness_attribute_timezone_aware? returned false by default.
When testing if a certain attribute is time zone aware in the validator, also check the value of
ActiveRecord::Base.time_zone_aware_types.We have
ActiveRecord::Base.time_zone_aware_types = [:datetime], hence :time types are not time zone aware. When validating times, they are still converted to CET, giving wrong validation errors.This problem arised with the upgrade to 5.0, because
skip_time_zone_conversion_for_attributesis empty in our case, which leads to the attribute being interpreted as time zone aware wrongly. In version 4.1,timeliness_attribute_timezone_aware?returned false by default.