Issue #13822 has been updated by kronikus (ANDREY KIM).

Tracker changed from Feature to Bug
Subject changed from Time.dst_changes(t=Time.now.year) to Time.dst?
ruby -v set to ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
Backport set to 2.4: UNKNOWN, 2.5: UNKNOWN

Is it bug or feature?
Receiving same result for Time.dst? method.
I belive it suppose to base it response on date in variable, correct me if i'm wrong.
Receiving it in Rails 5.1.2, but Time class is in ruby core

gems tzinfo, tzinfo-data are in Gemfile

Time zone configured in rails config: 
2.4.3 :001 > Time.zone
 => #<ActiveSupport::TimeZone:0x000055ac84e61410 @name="Eastern Time (US & Canada)", @utc_offset=nil, @tzinfo=#<TZInfo::DataTimezone: America/New_York>>

2.4.3 :013 > t
 => 2018-12-12 10:00:00 -0500
2.4.3 :014 > a
 => 2018-08-01 10:00:00 -0500
2.4.3 :015 > t.dst?
 => false
2.4.3 :016 > a.dst?
 => false
2.4.3 :017 > t.isdst
 => false
2.4.3 :018 > a.isdst
 => false


----------------------------------------
Bug #13822: Time.dst?
https://bugs.ruby-lang.org/issues/13822#change-75626

* Author: opti (Andreas Opti)
* Status: Feedback
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
output [time1,time2] of daysaving-changes of given year

I assume the result does not depend on timezone, 
only the output will be in default timezone.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>