[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
howtos:hardware:syncing_hardware_clock_and_system_local_time [2013/01/11 17:39 (UTC)] – [How To Sync Your System Time to Hardware Clock Consistently] hazelhowtos:hardware:syncing_hardware_clock_and_system_local_time [2013/01/11 17:46 (UTC)] – [Overview] hazel
Line 4: Line 4:
 ===== Overview ===== ===== Overview =====
  
-If you are booting multiple Linux distributions on the same machine, you might face the problem of inconsistent time zone settings across distributions. For example, assume you are dual-booting two Linux distributions, Distro X and Distro Y. +If you are booting multiple Linux distributions on the same machine, you might face the problem of inconsistent time zone settings across distributions. For example, assume you are dual-booting two Linux distributions, Distro X and Distro Y. You have set your BIOS hardware clock to show the local time
  
-if Distro X is configured to read the BIOS hardware clock as local time, then Distro X will show the correct time, but if Distro Y is configured to read  the hardware clock as set to UTC, then Distro Y will skew your local time. +If Distro X is configured to read the hardware clock as local time, it will show the time correctly, but if Distro Y is configured to read  the hardware clock as set to UTC, then it will show an incorrect time. 
  
 This HOWTO attempts to provide a simple and cross-distribution one-time solution to the issue, making sure all your distributions know that your hardware clock is set to the local time (or UTC if you prefer it).  This HOWTO attempts to provide a simple and cross-distribution one-time solution to the issue, making sure all your distributions know that your hardware clock is set to the local time (or UTC if you prefer it). 
Line 37: Line 37:
 ===== Syncing to UTC instead of Local Time ===== ===== Syncing to UTC instead of Local Time =====
  
-Some people prefer setting their hardware clock to UTC (Universal Coordinated Time) instead of local time. If you want to set your hardware clock to UTC and adjust the date/time accordingly, the above steps will simply change the ''hwclock'' command to +Some people prefer setting their hardware clock to UTC (Universal Coordinated Time) instead of local time. If you want to set your hardware clock to UTC and adjust the date/time accordingly, use the above steps but simply change the ''hwclock'' command to 
    hwclock --systohc --utc    hwclock --systohc --utc
 while setting the hardware clock from your system time. while setting the hardware clock from your system time.
 howtos:hardware:syncing_hardware_clock_and_system_local_time ()