Working with the Daylight Savings Time Change in Linux.

Let me start by saying that it is not Sendmail or Outlook fault that the time
is displayed incorrectly. After many hours or research and plain old hacking, I found
that gremlins must be to blame. Yeah, not sure what did it. 8)

I had this problem after the Daylight Savings Time change took place. Some of my servers
handled the time change fine. For some reason none of my Linux Red Hat 7.2
systems handled it correctly. I run sendmail as the MTA and most of the users
who connect to the server use a Microsoft(TM) product I will not mention. By the
way Netscape and all other Email apps I tried showed the correct date. Only the
Microsoft(TM) clients had the issue, including my Dell AXIM Pocket PC with
Poct PC 2002 on it.

Now for the problem. Right after the Daylight Savings Time Change, I noticed that
mail starting comming in an hour ahead of the actual time. Went to the mail server
aind checked to see if the time was correct. I used date, date -u, and
hwclock -r. All of these indicated that I had the time set
correctly for my locale. Then I proceeded to search the web using GOOGLE
to see if others were having this problem as well. Turned out a lot of people had the same problem
I did. A day later and I know TOO MUCH about how the clock works with the OS and how to
use it in scripts, but no answer. I tried syncing with timeservers.

The one thing that I finnaly got down to was that the clock was still using CST instead
of CDT. Well I am in CST, but it is now CDT (Standard vs Daiylight). A quick fix was to set
Sendmail to use CDT by defining it in sendmail [define(`confTIME_ZONE',`CDT')dnl]
and then set my UTC clock (date -u) to the UTC, this way it would wrap it with the -500 (-6 for Standard)
This is only a fix and not the answer.

JUST FIXED IT

For me this did it:ln -s /usr/share/zoneinfo/US/Central /etc/localtime

Linuxsa.orgi/tips/time.html

Thanks to these guys for the direct, lets just say poop. The part about making a symlink
to the correct timezone format did it for me. I was stuck in CST and now in CDT. They give
a lot of the great information on the so clock function of the system. Understand
it, you may not, but it does work. Very short and to the point. Thanks guys.

Google