The following procedure describes how to set the time on the Java Desktop System
:
Log in as root.
Choose Launch -> Preferences -> System, then click Time zone.
Enter the root password in the Password dialog.
Select the time zone for your location.
Select whether your hardware clock is set to local time or UTC. If you select UTC, Daylight Savings Time is automatically adjusted for your time zone. If you set your system for dual booting with another unsupported operating system, you might want to set the hardware clock to local time.
Set the time in the following way:
Choose Launch -> Applications -> System Tools -> Terminal
Log in as root using the su command.
Enter a date string using the date - s command
where date string is a string formatted as the output of the date command. For example:
date -s Wed Oct 29 16:11:16 GMT 2003
Alternatively, if you have access to a Network Time Protocol (NTP) server, use the ntpdate command as in the following example to set the time zone and synchronize the clock:
ntpdate -b sunswiss.swiss.sun.com.
Synchronize the hardware clock to the UNIX clock using the following command:
hwclock --systohc