LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   RHEL 6.5 - how do I disable DST? (https://www.linuxquestions.org/questions/linux-general-1/rhel-6-5-how-do-i-disable-dst-4175524246/)

MikeCannon 11-03-2014 04:55 PM

RHEL 6.5 - how do I disable DST?
 
How do I disable DST on a RHEL v6.5 system?

John VV 11-04-2014 12:40 AM

then set the correct time
and / or use the NTP

ilesterg 11-04-2014 01:52 AM

I thought DST changes are automatic/setup somewhere in a package and the server will automatically shift (ex. CET to CEST, then back)

michaelk 11-04-2014 05:27 AM

ntp works just on UTC. The timezone setting will switch between daylight saving and standard time.

Your question is a bit vague. Do you want your clock to display standard time or be fixed.
If the first then make sure your tz database is updated and your timezone is set correctly.

For those that do not have a timezone or use DST you can use a fixed offset by using a timezone Etc/gmt - or + offset. I believe it is possible to configure a fixed x:30 offset if you live in a country with that type of UTC offset

MikeCannon 11-04-2014 11:09 AM

Etc/GMT... did the trick. Specifically:

# cd /etc
# mv localtime localtime.orig
# ln –s /usr/share/zoneinfo/Etc/GMT+8 localtime

because I'm on the left coast. you link to the appropriate “GMT+*” or “GMT-*” file per your desired local timezone.

My system needs to ignore DST basically because it has to adhere to Zulu time (we're a military simulation), which of course remains "constant" wrt DST's spring-forward-fall-back. The system clock is the basis for our software clock.

michaelk 11-04-2014 11:45 AM

Interesting that you didn't want to use Zulu time.
.

Glad it is working and you can mark the thread as solved via the thread tools at the top of the page.

MikeCannon 11-04-2014 11:57 AM

We maintain two times - Zulu and a "local time". If you-the-user are doing a training exercise whose scenario is in e.g., South Africa, you set local time to Zulu plus 2 hours. If your scenario is in certain SW Asia locales, you might have to set your local time to Zulu plus 3 hours and 30 minutes.


All times are GMT -5. The time now is 12:06 AM.