-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 05/26/2014 03:44 PM, cov...@ccs.covici.com wrote: > Hi. I have noticed that when I bootup using systemd, till I run > ntpdate, the times are 4 hours earlier than they should be. Do I > need an hwclock unit somewhere, or some other command to fix? I > don't think the clock is actually wrong, its got to have something > to do with the timezone. > > Thanks in advance for any suggestions. >
First, make sure that the system time zone is correct by making sure that /etc/localtime is a symlink to your current timezone (in /usr/share/zoneinfo). If the only operating system you boot on the machine is Linux (or, generally, if you *don't* use Windows): 1) Set your BIOS clock to the current time *in UTC*. 2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of "LOCAL") If you *do* dual-boot to Windows (and don't want to use the unsupported methods to make Windows aware that the BIOS time is UTC): 1) Set your BIOS clock to the current *local* time 2) Ensure that the last line of /etc/adjtime reads "LOCAL" (instead of "UTC"). If you dual-boot Windows 7 or earlier and want to use that unsupported method mentioned above: 1) Set your BIOS clock to the current time *in UTC*. 2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of "LOCAL") 3) In Windows, in the registry key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" set the value "RealTimeIsUniversal" (a DWORD if you have to create it) to "1". If you use Windows 8, in addition to the above, you have to disable Windows from ever writing the time to the BIOS clock, otherwise on shutdown it will reset the BIOS time to local time. - -- Jonathan Callen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCgAGBQJThBXJAAoJELHSF2kinlg4v7sQAK5MEh3dztXxLkEC6LBQjidw xgNfXdhq5sLGrwx5csN1ORsV29ye61+zQ4R6SfMKlNBlsgMq3Uqpl1Ft5ngGQFYE hT4dGDdJIF8nPafA/Egov8NYfPk5YWU6jkbMoCuENKGbXx+552IXqg+wBNzRzrl0 avlM5DnUbRQjYQq0M6nhSgX6N0S0bzZ59tXsM1BFy/tjoo+GWpAHW9c3mbuGpG9U jC3yDhCWq5RlrARrqRWbcuZvaYYe+VBeWW4qXBbSyTbcgXPGiR44lMAYp+LZbxPP If9yINKweHndOKrcoRVBuXYuGoKIpiTyqXmJEWu7an8SZKKooOV1y3U5vpSlJfmL MwodtprGvgPLJzCue8OvOBT25/LvH6f6O3j97BuLQb3lL504zEFXYSzj3zDJzCQu woBtSG4vYKvhuwEHTyTNVf00NKWHjaVhgG5wfkXjZSX3xCl0OAwyf2xExc74gy6m x5B7l+3ut1Y0x9JsYbVcg4juPnHAz0c16QhlolsTGtfOHj9GBvKhBdn/3lgku0Zi JfdplxNg9W1gP8eoe1oPfgvaF5gZeLTdOxgFHfNfuF+Pq/hbUNS2dca6O7QonKlL jOnLSmYgHr6zRha/5J1hADDkHsVYS1d6pVVKBgxwCOkgnboEs8Hxy9Ur6hKFxhbf OrRwJU2pgq9/J9Wx5+mT =bqR5 -----END PGP SIGNATURE-----