Golang 1.12 code can't convert JST timezone on an alpine docker images with a tzdata later 2020c-r0
Hi, I'm using an alpine docker image && golang 1.12. It has some codes to convert JST timezone.
It had been running to convert JST timezone such as 2020-11-08 00:04:05 +0900 JST
before the middle of the last month.
But it hasn't been running from the end of the last month. It converts as 2020-11-07 15:04:05 +0000 +0000
.
I've tried to use some images in a code, and gotten following results. It seems to be on the alpine
, tzdata later 2020c-r0
and go 1.12
.
go version | docker image | tzdata | result | note |
---|---|---|---|---|
1.12 | alpine 3.12.1 | tzdata 2020c-r0 | failure | Please look the versions at dockerhub and alpine package |
1.12 | alpine 3.10.3 | tzdata 2020c-r0 | failure | |
1.12 | alpine edge | tzdata 2020d-r0 | failure | |
1.12 | alpine 3.8 | tzdata 2020a-r0 | success | |
1.12 | ubuntu 20.04 | tzdata 2020d-0ubuntu0.20.04 | success | Please look the versions at dockerhub and Ubuntu packages |
1.15.4(golang:alpine image) | alpha 3.12.1 | tzdata 2020c-r0 | success | Please look the golang version at [golang dockerhub] |
1.13 | alpine 3.12.1 | tzdata 2020c-r0 | success |
I'm glad if I can use the latest alpine and go 1.12 with correct timezone conversion.
(I can avoid it if I use golang over 1.13, or use tzdata2020a-r0 (getting from 2020a-r0 as the Dockerfile.)