Comment 5 for bug 2055718

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Re: Regression after update: timezone changed unexpectedly

That happens also with the current version of tzdata.

Starting with:

$ dpkg -l tzdata|grep tzdata
ii tzdata 2022a-0ubuntu1 all

$ date
Mon Mar 4 12:22:38 UTC 2024

# the current timezone (UTC) was configured via dpkg-reconfigure tzdata

$ sudo apt reinstall tzdata=2022a-0ubuntu1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 342 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://br.archive.ubuntu.com/ubuntu jammy/main amd64 tzdata all 2022a-0ubuntu1 [342 kB]
Fetched 342 kB in 0s (11.1 MB/s)
Preconfiguring packages ...
(Reading database ... 31964 files and directories currently installed.)
Preparing to unpack .../tzdata_2022a-0ubuntu1_all.deb ...
Unpacking tzdata (2022a-0ubuntu1) over (2022a-0ubuntu1) ...
Setting up tzdata (2022a-0ubuntu1) ...

Current default time zone: 'Etc/UTC'
Local time is now: Mon Mar 4 12:22:55 UTC 2024.
Universal Time is now: Mon Mar 4 12:22:55 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Timezone is kept, as expected.

Now I set it via timedatectl:
ubuntu@j-tz:~$ sudo timedatectl set-timezone EST
ubuntu@j-tz:~$ date
Mon Mar 4 07:23:42 EST 2024

Reinstall same tzdata:
$ sudo apt reinstall tzdata=2022a-0ubuntu1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 342 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://br.archive.ubuntu.com/ubuntu jammy/main amd64 tzdata all 2022a-0ubuntu1 [342 kB]
Fetched 342 kB in 0s (14.6 MB/s)
Preconfiguring packages ...
(Reading database ... 31964 files and directories currently installed.)
Preparing to unpack .../tzdata_2022a-0ubuntu1_all.deb ...
Unpacking tzdata (2022a-0ubuntu1) over (2022a-0ubuntu1) ...
Setting up tzdata (2022a-0ubuntu1) ...

Current default time zone: 'America/Adak'
Local time is now: Mon Mar 4 02:23:57 HST 2024.
Universal Time is now: Mon Mar 4 12:23:57 UTC 2024.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

And we get America/Adak:
$ date
Mon Mar 4 02:24:08 HST 2024

So I don't think it's a regression, and am updating the tags accordingly.