I am having the same issue as this user, that created this issue in repository of Rails: (rails/rails#27419)
Steps to reproduce
In rails console.
DateTime.now.in_time_zone("Samoa") Returns a date with a UTC offset of + 14:00
ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60 Returns -11
Expected behavior
ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60 Should return 14 or 13 based on daylight savings time
Actual behavior
ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60 Returns -11
System configuration
Rails version: 5.0.2
Ruby version: 2.3.3
I am having the same issue as this user, that created this issue in repository of Rails: (rails/rails#27419)
Steps to reproduce
In rails console.
DateTime.now.in_time_zone("Samoa")Returns a date with a UTC offset of + 14:00ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60Returns -11Expected behavior
ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60Should return 14 or 13 based on daylight savings timeActual behavior
ActiveSupport::TimeZone.new('Samoa').utc_offset/60/60Returns -11System configuration
Rails version: 5.0.2
Ruby version: 2.3.3