GistTree.Com
Entertainment at it's peak. The news is by your side.

Go: Location interprets wrong timezone (DST) with slim zoneinfo

0

What model of Dart are you the employ of (high-tail model)?

$ high-tail model
high-tail model go1.15.3 linux/amd64

Does this train reproduce with the latest liberate?

Chase, but it seems mounted in grasp with d83168e.

What running machine and processor architecture are you the employ of (high-tail env)?

high-tail env Output


$ high-tail env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/high-tail-construct"
GOENV="/root/.config/high-tail/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/high-tail/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/high-tail"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,grunt"
GOROOT="/usr/native/high-tail"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/native/high-tail/pkg/machine/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-procedure=/tmp/high-tail-construct587886067=/tmp/high-tail-construct -gno-recount-gcc-switches"

What did you accomplish?

The formulation to reproduce: https://gist.github.com/hlubek/f46a73bc9d150cf1f2af585b0849e3d9

  • Added a compiled Dart binary to a extraordinarily straightforward Alpine Docker image with place in tzdata equipment
  • Timezones (e.g. Europe/Berlin) uses negative sunlight hours saving info (e.g. CEST as a replace of CET for dates after October, 25th in 2020)
  • This seems led to by changes within the tzdata equipment in Alpine
  • It does now not happen if the tzdata Alpine equipment is now not place in and the embedded zoneinfo time/tzdata is outmoded

What did you ask to search?

  • An error when loading the location with a non like minded zoneinfo

What did you gaze as a replace?

  • A wrongly interpreted date

Notes

Here’s already mounted with d83168e but I shock why there’s never this form of thing as a info about that train (took me some time to figure it out) or a take a look at for the code added to zoneinfo_read.high-tail. Here’s barely a faded setup for packaging Dart capabilities so I may well per chance perhaps well think many participants are plagued by this. The repair seems to completely work if the cached zone for now() is expounded to the final transition. This broke after the final clock switch on October, 25th for CET/CEST.

Read More

Leave A Reply

Your email address will not be published.