Skip to content
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

dst? returns true for Europe/Dublin during winter time #107

Closed
MohammedAbuissa opened this issue Nov 13, 2019 · 1 comment
Closed

dst? returns true for Europe/Dublin during winter time #107

MohammedAbuissa opened this issue Nov 13, 2019 · 1 comment

Comments

@MohammedAbuissa
Copy link

@MohammedAbuissa MohammedAbuissa commented Nov 13, 2019

Steps to reproduce

irb(main):010:0> require 'tzinfo'
=> false
irb(main):011:0> Gem.loaded_specs["tzinfo"].version
=> #<Gem::Version "2.0.0">
irb(main):012:0> tz = TZInfo::Timezone.get('Europe/Dublin')
=> #<TZInfo::DataTimezone: Europe/Dublin>
irb(main):013:0> local_time = tz.local_time(2019, 11, 13, 12, 30)
=> 2019-11-13 12:30:00 +0000
irb(main):017:0> local_time.dst?
=> true
irb(main):014:0> local_time = tz.local_time(2019, 8, 13, 12, 30)
=> 2019-08-13 12:30:00 +0100
irb(main):015:0> local_time.dst?
=> false

The DST is kind of flipped and don't match https://www.timeanddate.com/time/change/ireland/dublin description where is says DST has ended on 27th of Oct 2019.

Can anyone explain why is DST flipped?

@philr

This comment has been minimized.

Copy link
Member

@philr philr commented Nov 13, 2019

Duplicate of #95

@philr philr marked this as a duplicate of #95 Nov 13, 2019
@philr philr closed this Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.