Package: tzdata
Version: 2024b-1
Severity: normal

Hi,

starting with 2024b-1 the timezone offset in /etc/localtime is always
zero:

$ mmdebstrap --variant=essential --include=python3-dateutil 
--essential-hook='echo tzdata tzdata/Areas select Europe | chroot "$1" 
debconf-set-selections' --essential-hook='echo tzdata tzdata/Zones/Europe 
select Berlin | chroot "$1" debconf-set-selections' 
--chrooted-customize-hook='python3 -c \'from dateutil import tz; from datetime 
import datetime; print(datetime.strptime("2024-2-3T12:13", 
"%Y-%m-%dT%H:%M").replace(tzinfo=tz.gettz()).utcoffset())\'' unstable /dev/null
[...]
0:00:00

But if you replace unstable with testing in the above call to get
version 2024a-4 it returns:

1:00:00

I also tested with other zones like Australia/Adelaide (should be
10:30:00).

Cheers Jochen


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.10.12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages tzdata depends on:
ii  debconf [debconf-2.0]  1.5.87

tzdata recommends no packages.

tzdata suggests no packages.

-- debconf information:
* tzdata/Zones/Europe: Berlin
  tzdata/Zones/Indian:
  tzdata/Zones/Arctic:
  tzdata/Zones/SystemV:
  tzdata/Zones/Atlantic:
  tzdata/Zones/Australia:
* tzdata/Zones/Etc: UTC
  tzdata/Zones/US:
  tzdata/Zones/Asia:
* tzdata/Areas: Europe
  tzdata/Zones/Pacific:
  tzdata/Zones/America:
  tzdata/Zones/Antarctica:
  tzdata/Zones/Africa:

Reply via email to