Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect arguments for Time.zone.local
These usages were intended for Time.zone.parse and have been changed accordingly. In Ruby 3.1.x an error occurs when a String is passed to Time.zone.local: irb(main):001:0> Time.zone.local("2017-07-27 16:01:01").utc /Users/kevin.dew/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/activesupport-7.0.2.3/lib/active_support/values/time_zone.rb:355:in `utc': invalid value for Integer(): "2017-07-27 16:01:01" (ArgumentError) It's worth noting that this didn't actually behave correctly before. The string argument just seemed to be converted into "2017": irb(main):001:0> Time.zone.local("2017-07-27 16:01:01") => Sun, 01 Jan 2017 00:00:00.000000000 UTC +00:00
- Loading branch information