Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Timezone support by Time in Ruby 2.6 #94
added a commit
Oct 7, 2018
Sorry for the delay in responding to this.
I see that you've now changed
I've pushed a new feature/support_time_tm_struct branch with changes to
Note that TZInfo 1.2 is also checking classes, but falls back to calling
Regarding the superclass of
In general, I don't think checking classes is preferred in ruby.
I've committed a change to master to accept Time-like values (checking that the object responds to both to_i and subsec).
According to https://ruby-doc.org/core-2.6.0.preview3/Time.html#class-Time-label-Timezone+argument, 'the sub-second attributes [of the Time-like object] are fixed as 0', so TZInfo 1.2 only calling