Forum Discussion

rafik_74599's avatar
Icon for Nimbostratus rankNimbostratus
May 04, 2011

Turning DST (daylight save time) off

Hi all,



I have a loadbalnacer working on Redhat Linux OS.



I tried to turnoff DST (daylight time save) but I didn't know how.



I wanted to modify /usr/share/zoneinfo/Africa/Tunis file but I couldn't even if I have root rights.



Any idea please?



2 Replies

  • Hi Rafik,



    Tunis shouldn't be using DST by default. If you check the zoneinfo for this timezone, DST (isdst) is set to 0 for the future:



    zdump -v /usr/share/zoneinfo/Africa/Tunis | tail -3


    /usr/share/zoneinfo/Africa/Tunis Sun Oct 26 01:00:00 2008 UTC = Sun Oct 26 02:00:00 2008 CET isdst=0 gmtoff=3600


    /usr/share/zoneinfo/Africa/Tunis Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 04:14:07 2038 CET isdst=0 gmtoff=3600


    /usr/share/zoneinfo/Africa/Tunis Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 04:14:07 2038 CET isdst=0 gmtoff=3600



    If you want to set the timezone to UTC (which doesn't use DST either), you can check SOL8551:



    sol8551: F5 time zone update policy




  • Hi Aaron,



    The output of date commande is Fri Apr 29 17:57:56 CEST 2011



    timezone is set to /Africa/Tunis.



    As checked this file /Africa/Tunis, I found CET-1,CEST...



    I wanted to modify (by copying for example the content of /CET time or /Africa/Algiers) this file but it was impossible even with root rights,



    So it seems that I must set time zone to UTC.