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
TZ string first offset did not match final defined offset for Africa/Casablanca #123
Comments
@dennismonsewicz What operating system and version are you using? What version of the time zone data package do you have installed? Are you using tzinfo v2.0.3 or v1.2.8? Please could you share the /usr/share/zoneinfo/Africa/Casablanca file? As a workaround for this you can switch to using the tzinfo-data gem. |
Africa/Casablanca
Thanks for getting back with me @philr! I am getting these errors in docker using a Mac. Here are the details for the OS in docker
I am using
UPDATE I have installed the |
I've downloaded and extracted the files from the latest Debian 9 (stretch) tzdata package (2020d-0+deb9u1) from https://packages.debian.org/stretch/all/tzdata/download. The Africa/Casablanca time zone file loads fine for me (I'm not using Debian, but that shouldn't make a difference). Please could you confirm which version of the tzdata package you have installed, e.g. by running Please could you also upload the /usr/share/zoneinfo/Africa/Casablanca file from the docker container as an attachment so I can examine its contents? |
Working on getting the file |
I've downloaded the version of the tzdata package you are using (2018e-0+deb9u1) from https://snapshot.debian.org/package/tzdata/2018e-0%2Bdeb9u1. With this version I can now reproduce the error you are seeing. There's no need to upload your copy of the file. I'll have a look at what's different with this version and determine whether it's a bug with tzinfo or an issue with the old file. It is worth noting that version 2018e was released on 2018-05-01 and there have been many changes since (see https://github.com/eggert/tz/blob/master/NEWS). If you rely on time zone data, it'd be a good idea to either keep the Debian tzdata package up to date or use the latest version of the tzinfo-data gem. |
@philr sounds good. It looks like using the |
The latest version of the Debian tzdata package is fine. The issue seems to be with older versions only. |
Required to handle Africa/Casablanca in 2018e. The last defined transitions are: At 2037-03-29 02:00Z change to WEST UTC+1 At 2037-10-04 02:00Z change to WET UTC+0 The rules define the end of DST to be at 03:00 local time on the last Sunday of October (2037-10-31). This later transition needs to be ignored. Resolves #123
@philr thanks for tackling this! Was there a version bump or just gem install the latest master? |
The fix hasn't been released yet. I'll probably do that soon. If you want to test beforehand, you can use the 1.2 branch (master won't be compatible with the version of ActiveSupport you are using). |
I am receiving the following error when looking up the Timezone info for
Africa/Casablanca
Originally posted by @dennismonsewicz in #98 (comment)
The text was updated successfully, but these errors were encountered: