Nothing configures the 'timezone' on Unix based operating systems the hardware clock is ALWAYS UTC but the user time which is used for everything the system actually does is local time...
As long as the hwclock shows UTC you can use that command to set the time just fine...
(or if using something debian based you can be lazy and let dpkg-reconfigure handle it all, `dpkg-reconfigure tzdata`)
owh, how to change UTC time ?
For me using UTC always fucked the PW Server when encountering DST Changes.
In debian there are 2 places to look when you want to change your timezone:
this tells your system that your hardwareclock does NOT use UTCOriginally Posted by /etc/default/rcS
this sets your system timezone in debiandpkg-reconfigure tzdata
after you changed this stuff, and set the time with date/hwclock you need to reboot the system for the times to apply to your PW server.
The utc=no is needed in some cases, when your host has preinstalled the system with weird settings. E.g. Hetzner tends to set your hwclock to CEST, but leaves the setting UTC=yes active which fucks your server's scheduled events as soon as you start modifying your clock.
Usually your system should be fine, as long as your settings are consistent and you reboot the server after each clock adjustment.
Last edited by tbnanubis; 26-04-11 at 10:29 AM.
allright, but when i type hwclock in terminal i got this :
Tue 26 April, 2011 03:43:45 PM WIT -7646670 second
the problem is how to change "WIT" to "WIB" bcz WIB is my time in my country at my home
UTC+7 "WIB" "Waktu Indonesia Barat" "Western Indonesia Standard Time"
but,
UTC+9 "WIT" "Waktu Indonesia Timur" "Eastern Indonesia Standard Time"
i use hrace009 vbox image server
nb : sorry for my bad english
Last edited by FhadheL; 26-04-11 at 10:49 AM.
Perfect World servers really hate timezone changes.
more detail please![]()
A while back I had the same problem I found was the solution q to change the operating system server base my schedule to coincide with the server.
I did it for console these are the steps:
We can change the system time and when the computer's BIOS.
To change the system time, use the command date, but we must keep in mind that when you reboot the computer, it will take time for the BIOS and we will replace the previous hour, to avoid this change also when the BIOS hwclock command as follows:
We assume that we want to put date: 25-Feb-2000 and 16:25 hours.
We will do this as root:
# Date - set "25/02/2011 16:25"
Fri Feb 25 16:25:00 CET 2011
Now make the same change to update the BIOS date.
# Hwclock - set - date = "02/25/2000 16:25"
To check type:
# hwclock
Fri Feb 25 16:25:06 2000 -0.010586 seconds
Hope will
instead of setting the hwclock seperately, you can use hwclock -systohc to have it transfered exactly with very low delay.
OT Necro..