jruby / activerecord-jdbc-adapter

JRuby's ActiveRecord adapter using JDBC.
BSD 2-Clause "Simplified" License
462 stars 385 forks source link

[postgres] Fix dates when using non-standard format #1062

Open dr-itz opened 4 years ago

dr-itz commented 4 years ago

Back-port from 52-stable

Date#to_s actually does the wrong thing when Date::DATE_FORMATS[:default] is set to something non-standard.

Fixes #1061

headius commented 4 years ago

I see some of these same suites failing on the 5.0 branch. Should they be green @enebo @kares @rdubya?

enebo commented 4 years ago

@headius those few errors have always been on 50 and 51. @dr-itz has actually fixed some but we have largely been just moving forward at this point. 5.0 and 5.1 of rails are technically no longer supported by Rails and we said we would not either (although I am still spinning releases of them when we backport).