Path: | doc/release_notes/5.2.0.txt |
Last Update: | Sat Jun 02 02:04:22 +0000 2018 |
The postgres adapter already had a convert_infinite_timestamps setting, but it wasn‘t supported in the jdbc/postgresql adapter and it didn‘t handle BC dates/timestamps. Setting a non-default convert_infinite_timestamps setting in the postgres adapter will now automatically load the extension for backwards compatibility.
The pg_extended_date_support extension by default just fixes the handling of BC dates/timestamps. To get it to handle infinite timestamps, you need to choose the appropriate setting for your application:
DB.extension :pg_extended_date_support DB.convert_infinite_timestamps = :string # or :float or :nil
This extension also enables the handling of timezone offsets with seconds, which is not natively supported by ruby‘s Time class in ruby <2.5.