Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Invalid result when formatting time zone as hour and minute offset from UTC #11
Formatting time zone object using abbreviated time zone name (
Is this problem related to your code, or is it dependent on specific environment settings and/or ruby installation? If the latter is the case, do you know any workaround to address it? Many thanks!
There is a change in the tzinfo git repository that adds support for
Alternatively, you could obtain the current offset using
tz.period_for_utc(Time.now.utc).utc_total_offset # => -18000