[Pkg-javascript-devel] Bug#981812: nodejs: wrong timezone offset

Jérémy Lal kapouer at melix.org
Thu Feb 4 08:05:14 GMT 2021


Control: retitle -1 /usr/share/zoneinfo-icu/44/ is missing
Control: reassign -1 icu


Le jeu. 4 févr. 2021 à 08:06, Andrey Nikitin <andrey.d.nikitin at gmail.com> a
écrit :

> Package: nodejs
> Version: 12.20.1~dfsg-3
> Severity: normal
>
> Hi.
>
> Since "Dec 27 2020" TZ Europe/Volgograd = Europe/Moscow,
> with +03h offset.
>
> But nodejs use old (now wrong) +04h offset.
>
> $ env TZ="Europe/Moscow" nodejs -e 'console.log((new
> Date().getTimezoneOffset())/60)'
> -3
> $ nodejs -e 'console.log((new Date().getTimezoneOffset())/60)'
> -4
> $ env TZ="Europe/Volgograd" nodejs -e 'console.log((new
> Date().getTimezoneOffset())/60)'
> -4
>
> $ zdump -c 2020,2021 -V /usr/share/zoneinfo/Europe/Volgograd
> /usr/share/zoneinfo/Europe/Volgograd  Sat Dec 26 21:59:59 2020 UT = Sun
> Dec 27 01:59:59 2020 +04 isdst=0 gmtoff=14400
> /usr/share/zoneinfo/Europe/Volgograd  Sat Dec 26 22:00:00 2020 UT = Sun
> Dec 27 01:00:00 2020 +03 isdst=0 gmtoff=10800
>
> $ date +"%z (%Z)"
> +0300 (+03)
>
> $ strace nodejs -e 'console.log((new Date().getTimezoneOffset())/60)' 2>&1
> | grep zone
> stat("/usr/share/zoneinfo-icu/44/le/zoneinfo64.res", 0x7ffea7585330) = -1
> ENOENT (Нет такого файла или каталога)
> readlink("/etc/localtime", "../usr/share/zoneinfo/Europe/Vol"..., 4095) =
> 38
> stat("/usr/share/zoneinfo-icu/44/le/timezoneTypes.res", 0x7ffea7583570) =
> -1 ENOENT (Нет такого файла или каталога)
>

Thanks a lot, this is a bug in icu.

Reassigning.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210204/de3109f3/attachment.html>


More information about the Pkg-javascript-devel mailing list