PDA

View Full Version : Change time and timezone



BlueCola
01-30-2012, 04:49 PM
The time on my VPS isn't properly configured. When I run the command "date", I get the following:



$ date
Tue Jan 31 00:48:42 UTC 2012


I want the timezone to be Amsterdam/Netherlands (GMT +1). Also the clock is 5 minutes ahead, which is kinda strange (when I executed the date command, it was 01:43:42). So I symlinked /etc/localtime to /usr/share/zoneinfo/Europe/Amsterdam, by executing


ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

But it didn't worked. The time is still UTC, and 1 hour (and 5 minutes) less than it should be. Also, I don't have the file /etc/sysconfig/clock, which is kinda strange to.

Can anyone help me fix this?

zEitEr
01-30-2012, 11:40 PM
Hello,

You should consult with your hosting company, from which you buy VPS. The issue has nothing to do with directadmin and might depends on your virtualization type.

SeLLeRoNe
01-31-2012, 12:22 AM
Did you tryed to remove /etc/localtime before make the symlink?

Regards

thunn
04-28-2012, 01:49 PM
The time on my VPS isn't properly configured. When I run the command "date", I get the following:



$ date
Tue Jan 31 00:48:42 UTC 2012


I want the timezone to be Amsterdam/Netherlands (GMT +1). Also the clock is 5 minutes ahead, which is kinda strange (when I executed the date command, it was 01:43:42). So I symlinked /etc/localtime to /usr/share/zoneinfo/Europe/Amsterdam, by executing


ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime

But it didn't worked. The time is still UTC, and 1 hour (and 5 minutes) less than it should be. Also, I don't have the file /etc/sysconfig/clock, which is kinda strange to.

Can anyone help me fix this?

Please try this:
Check date:

>date
Set date:

>date nnddhhmm[[cc]yy][.ss]

View Hardware date time:

>hwclock --show
Set hardware clock date + time:

>hwclock --set --date='03/26/2012 03:57:02' --localtime

It worked with me (I'm using a VPS).