Skip to content

TZInfo with ActiveSupport - Samoa Timezone error #66

Description

@pedrofurtado

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions