Comment 5 for bug 1222345

Revision history for this message
itsadok (itsadok) wrote :

Yaron, you're right. I mistakenly assumed that zdump accepts a file name, but its parameters are actually zone names, and it always reads from /usr/share/zoneinfo.

After running dpkg -i tzdata_2013d-1ubuntu1_all.deb the situation is resolved.

$ wget http://archive.ubuntu.com/ubuntu/pool/main/t/tzdata/tzdata_2013d-1ubuntu1_all.deb
$ dpkg -i tzdata_2013d-1ubuntu1_all.deb
$ ls -l /usr/share/zoneinfo/Asia/{Tel,Jer}*
lrwxrwxrwx 1 root root 9 Aug 2 11:32 /usr/share/zoneinfo/Asia/Jerusalem -> ../Israel
lrwxrwxrwx 1 root root 9 Aug 2 11:32 /usr/share/zoneinfo/Asia/Tel_Aviv -> ../Israel
$ zdump -v Asia/Jerusalem | grep '2013\|2014'
Israel Thu Mar 28 23:59:59 2013 UTC = Fri Mar 29 01:59:59 2013 IST isdst=0 gmtoff=7200
Israel Fri Mar 29 00:00:00 2013 UTC = Fri Mar 29 03:00:00 2013 IDT isdst=1 gmtoff=10800
Israel Sat Oct 26 22:59:59 2013 UTC = Sun Oct 27 01:59:59 2013 IDT isdst=1 gmtoff=10800
Israel Sat Oct 26 23:00:00 2013 UTC = Sun Oct 27 01:00:00 2013 IST isdst=0 gmtoff=7200
Israel Thu Mar 27 23:59:59 2014 UTC = Fri Mar 28 01:59:59 2014 IST isdst=0 gmtoff=7200
Israel Fri Mar 28 00:00:00 2014 UTC = Fri Mar 28 03:00:00 2014 IDT isdst=1 gmtoff=10800
Israel Sat Oct 25 22:59:59 2014 UTC = Sun Oct 26 01:59:59 2014 IDT isdst=1 gmtoff=10800
Israel Sat Oct 25 23:00:00 2014 UTC = Sun Oct 26 01:00:00 2014 IST isdst=0 gmtoff=7200

So all that is needed is backporting the package to older ubuntu versions.