Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Timezone and Daylight Savings Time


Jesus M. Salvo Jr. wrote:


So back to the question ... should our linux computer shows "EST" when we are under daylight savings time ? It just does not feel / look right keeping the same timezone abbrevation for both standard and daylight savings time in NSW, regardless of whether or our government makes an official timezone abbrevations.


Maybe useful or not, maybe it will even __break__ things, but I gave this a try on one of my test servers:

[root@fedora jsalvo]# export TZ=AEST-10AEDT,M10.5.0/2,M3.5.0/3

Now let's watch it change from standard time to daylight savings time abbreviation:

[root@fedora jsalvo]# date --set='2004-10-31 01:59:45'
Sun Oct 31 01:59:45 AEST 2004
[root@fedora jsalvo]# date
Sun Oct 31 01:59:54 AEST 2004
[root@fedora jsalvo]# date
Sun Oct 31 01:59:58 AEST 2004
[root@fedora jsalvo]# date
Sun Oct 31 03:00:00 AEDT 2004