-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent TimeWithZone equality checks #4892
Comments
I'm not sure where this |
@headius It's from rails: Here's a snippet that should run
|
Confirmed on jruby-9.1 branch as well. |
Still failing on current JRuby master (9.2). |
let's have it - this is slightly 🤧 since one should never expect a time clock to return the same require 'date'
require 'active_support/all'
puts ActiveSupport::VERSION::STRING
now = DateTime.now
puts inz = now.in_time_zone('Eastern Time (US & Canada)')
puts utc = now.utc
puts inz == utc 9.2 (master) output:
same with 9.1.16.0 + AS 5.1 :
|
Environment
jruby-9.1.15.0
rails 4
16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Expected Behavior
The following occurs in MRI ruby:
Actual Behavior
In Jruby-9.1.15.0:
The text was updated successfully, but these errors were encountered: