Added support for handling "slim" format zoneinfo files that are produced by default by zic version 2020b and later. The POSIX-style TZ string is now used calculate DST transition times after the final defined transition in the file. #120.
Fixed TimeWithOffset#getlocal returning a TimeWithOffset with the timezone_offset still assigned when called with an offset argument on JRuby 9.3.
Added support for handling "slim" format zoneinfo files that are produced by
default by zic version 2020b and later. The POSIX-style TZ string is now used
calculate DST transition times after the final defined transition in the file.
#120.
Fixed TimeWithOffset#getlocal returning a TimeWithOffset with the
timezone_offset still assigned when called with an offset argument on JRuby
9.3.
Rubinius is no longer supported.
Version 2.0.2 - 2-Apr-2020
Fixed 'wrong number of arguments' errors when running on JRuby 9.0. #114.
Added a TZInfo::Timezone#=~ method that performs a regex match on the time
zone identifier. #99.
Added a TZInfo::Country#=~ method that performs a regex match on the country
code.
Version 2.0.0 - 26-Dec-2018
Added
to_local and period_for instance methods have been added to
TZInfo::Timezone. These are similar to utc_to_local and period_for_utc,
but take the UTC offset of the given time into account.
abbreviation, dst?, base_utc_offset and observed_utc_offset instance
methods have been added to TZInfo::Timezone, returning the abbreviation,
whether daylight savings time is in effect and the UTC offset of the time zone
at a specified time.
A TZInfo::Timestamp class has been added. It can be used with
TZInfo::Timezone in place of a Time or DateTime.
local_time, local_datetime and local_timestamp instance methods have
been added to TZInfo::Timezone. These methods construct local Time,
DateTime and TZInfo::Timestamp instances with the correct UTC offset and
abbreviation for the time zone.
Support for a (yet to be released) version 2 of tzinfo-data has been added, in
addition to support for version 1. The new version will remove the (no longer
needed) DateTime parameters from transition times, reduce memory consumption
and improve the efficiency of loading timezone and country indexes.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Updates the requirements on tzinfo to permit the latest version.
Release notes
Sourced from tzinfo's releases.
Changelog
Sourced from tzinfo's changelog.
Commits
c3db7ab
[ci skip] Fix heading level.cb105a6
Preparing v2.0.3.8e0c7aa
Add releases from the 0.3 and 1.2 branches.517adf7
Test that ZoneinfoReader returns untainted abbreviations.8586747
Update time zone test fixtures based on tzdata 2020d.1efcf6d
Support "slim" zoneinfo files produced by default by zic >= 2020b.23d731e
Use up to date Linux distros to test (where possible).7287749
Switch to travis-ci.com.e1d9819
Update to Ruby 2.7.2, JRuby 9.2.13.0 and TruffleRuby 20.2.0.3816352
Merge pull request #116.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)