[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#522949: TZ=Egypt date -d 'Dec 1 00:00:00 2037' prints UTC date.



Package: tzdata
Version: 2008h-2

On Debian GNU/Linux (lenny), date command prints a UTC date
for 2037-12-01 in Egypt timezone as follows.

lenny% TZ=Egypt date -d 'Dec 1 00:00:00 2037'
Tue Dec  1 00:00:00 UTC 2037

I think "UTC" timezone is wrong.

date prints "EET" for 2036-12-01:

lenny% TZ=Egypt date -d 'Dec 1 00:00:00 2036'
Mon Dec  1 00:00:00 EET 2036

date also prints "EET" on Debian GNU/Linux (etch) as follows:

etch% TZ=Egypt date -d 'Dec 1 00:00:00 2037'
Tue Dec  1 00:00:00 EET 2037

I think the problem is caused by zoneinfo database because
zdump -v Egypt shows UTC timezone after 2037-08-27.

lenny% zdump -v Egypt|tail                   
Egypt  Thu Apr 24 21:59:59 2036 UTC = Thu Apr 24 23:59:59 2036 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 24 22:00:00 2036 UTC = Fri Apr 25 01:00:00 2036 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 28 20:59:59 2036 UTC = Thu Aug 28 23:59:59 2036 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 28 21:00:00 2036 UTC = Thu Aug 28 23:00:00 2036 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 23 21:59:59 2037 UTC = Thu Apr 23 23:59:59 2037 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 23 22:00:00 2037 UTC = Fri Apr 24 01:00:00 2037 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 27 20:59:59 2037 UTC = Thu Aug 27 23:59:59 2037 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 27 21:00:00 2037 UTC = Thu Aug 27 21:00:00 2037 UTC isdst=0 gmtoff=0
Egypt  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0
Egypt  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 gmtoff=0

Debian GNU/Linux (etch) has no such problem.

etch% zdump -v Egypt|tail                   
Egypt  Thu Apr 24 21:59:59 2036 UTC = Thu Apr 24 23:59:59 2036 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 24 22:00:00 2036 UTC = Fri Apr 25 01:00:00 2036 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 28 20:59:59 2036 UTC = Thu Aug 28 23:59:59 2036 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 28 21:00:00 2036 UTC = Thu Aug 28 23:00:00 2036 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 23 21:59:59 2037 UTC = Thu Apr 23 23:59:59 2037 EET isdst=0 gmtoff=7200
Egypt  Thu Apr 23 22:00:00 2037 UTC = Fri Apr 24 01:00:00 2037 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 27 20:59:59 2037 UTC = Thu Aug 27 23:59:59 2037 EEST isdst=1 gmtoff=10800
Egypt  Thu Aug 27 21:00:00 2037 UTC = Thu Aug 27 23:00:00 2037 EET isdst=0 gmtoff=7200
Egypt  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 05:14:07 2038 EET isdst=0 gmtoff=7200
Egypt  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 05:14:07 2038 EET isdst=0 gmtoff=7200

lenny% uname -a
Linux nute 2.6.26-1-486 #1 Fri Mar 13 17:25:45 UTC 2009 i686 GNU/Linux
lenny% dpkg -S /usr/share/zoneinfo/Egypt 
tzdata: /usr/share/zoneinfo/Egypt
lenny% dpkg -l |grep tzdata
ii  tzdata                               2008h-2                     time zone and daylight-saving time data

It seems several timezones, America/Santiago,
Pacific/Easter, etc., has same problem.
-- 
Tanaka Akira



Reply to: