time problem

tsiou

Verified User
Joined
Sep 15, 2006
Messages
213
Location
Larisa, Greece
Hi, i use ntpdate to set the time in my server.
a date command in my shell prints the correct date/time.
my hardware clock though as i see it from the ilo2 of my server shows +1 hour.
(recently hour set -1 hour from the time server due to time change)
my emails have the wrong time (the mail client shows +1 hour).
How can i setup it correct?
And shouldn't exim read the date from the local date command?
 
Last edited:
Pop3/Imap should get time from local client as well as most webmail clients.
 
my client's time is correct too....
it's a windows client with ntp too..
the email headers are with the correct time..
but why the servers hardware clock isn't changing?
 
You can use webmin to manage both system time and hardware time.
 
My hardware time clock and system time clock were both the same.
But exim was still delivering messages with a +6 hours of timestamp.
I needed to change the Time Zone setting with webmin to correct it.

All 3 of them needed to be set to show the correct time & timezone.
 
Generally you create your timezone when you build your server.

The following works on my Red Hat and CentOS servers; your server may be different.

The timezone file is /etc/localtime.

You can find the master files in subdirectories of /usr/share/zoneinfo.

Find the correct file, and copy it to your /etc/localtime file.

You don't have to reset or restart anything.

Jeff
 
Thanks for your help.. Problem solved.
I've noticed that mail headers had the correct time and the web client had wrong timezone...
 
Generally you create your timezone when you build your server.

The following works on my Red Hat and CentOS servers; your server may be different.

The timezone file is /etc/localtime.

You can find the master files in subdirectories of /usr/share/zoneinfo.

Find the correct file, and copy it to your /etc/localtime file.

You don't have to reset or restart anything.

Jeff


how to copy it to your /etc/localtime file.

cp Egypt /etc/localtime ???? is that the way to overwrite on the localtime ?
 
I'm a bit afraid to say yes because I worry that if you have to ask how to copy over a file, you may be unfamiliar enough with server administration to make some serious mistake now, or later.

That said: yes

But if you break your server it's not my responsibility. You should really have someone else administer your server if you don't know enough to manage it yourself.

Of course I'm prejudiced; our main business is server administration.

Jeff
 
Glad to hear it worked for you.

Another thing you can do is create a link.

Jeff
 
Back
Top