5W site logo 5W - мой домашний сайт-блог с картинками, кино и плюшками.

time-slitaz.txt

Hardware booting linux only:
Set hardware clock to UTC.
Set TZ file to adjust offset so system displays correct time.

Sync system to timeserver,sync hardware clock to system (utc):
# busybox ntpd -dnqp north-america.pool.ntp.org && hwclock -w -u

Sync system to timeserver,sync hardware clock to system (localtime):
# busybox ntpd -dnqp north-america.pool.ntp.org && hwclock -w -l

Set timezone:
# echo "Europe/Paris" > /etc/TZ
Log out/in

Hardware booting windows and linux:
Windows sets hardware clock and system time to local time.
Set linux TZ to UTC so there is no offset between hardware and system time to display local time.


My five cents. I have old Windows XP preinstalled on my old netbook. Here is a “patch” to Windows XP to force it to use UTC-based time in the hardware clock. Copy-paste next text, save as file with extension “reg”, for example “WinUTC.reg”, put on your Windows XP Desktop, run it with mouse double-click and confirm.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001