You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 52-stable, Time.parse('0001-01-01').to_date Is returning Jan 3, 0001, instead of Jan 1, 0001.
In our app there are RPG/DB2 legacy tables that store 0001-01-01 as a default date. We are trying to check for that default value and it is now failing because of this bug. It appears when this string is parsed as a Date when creating the Ruby/ActiveRecord object, it must be using Time#to_date at some point, yes?
In versions prior to 50-stable, this worked correctly for us. I see that from 50-stable and newer, the Gregorian Calendar was implemented, but there should be a fallback written into the code to handle dates that exist prior to Gregorian dates 1582. Is there a config somewhere to ignore this, or an easy way for me to monkeypatch this option into 52-stable (the highest version or DB2 database connection can support).
The text was updated successfully, but these errors were encountered:
On 52-stable,
Time.parse('0001-01-01').to_date
Is returning Jan 3, 0001, instead of Jan 1, 0001.In our app there are RPG/DB2 legacy tables that store
0001-01-01
as a default date. We are trying to check for that default value and it is now failing because of this bug. It appears when this string is parsed as a Date when creating the Ruby/ActiveRecord object, it must be using Time#to_date at some point, yes?In versions prior to 50-stable, this worked correctly for us. I see that from 50-stable and newer, the Gregorian Calendar was implemented, but there should be a fallback written into the code to handle dates that exist prior to Gregorian dates 1582. Is there a config somewhere to ignore this, or an easy way for me to monkeypatch this option into 52-stable (the highest version or DB2 database connection can support).
The text was updated successfully, but these errors were encountered: