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
I noticed odd results when parsing the same string after switching Chronic.time_class to an ActiveSupport time with zone. I've got some ideas of what might be the problem and will update this issue as I explore. Here is some code to show the issue.
1.8.7
-----
Time Sun Aug 01 12:00:00 +0100 2010
Time(AR) Fri, 01 Aug 0010 12:00:00 UTC +00:00
1.9.2
-----
Time 0010-08-01 12:00:00 +0100
Time(AR) Sun, 01 Aug 0010 12:00:00 UTC +00:00
As you can see, on Ruby 1.9.2, all went as expected. This is because 1.8 handles years differently to 1.9. ActiveRecord is obviously doing something to ensure 1.8 works like 1.9 does.
I noticed odd results when parsing the same string after switching Chronic.time_class to an ActiveSupport time with zone. I've got some ideas of what might be the problem and will update this issue as I explore. Here is some code to show the issue.
The text was updated successfully, but these errors were encountered: