-----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/ iQIcBAEBCgAGBQJThBBqAAoJELHSF2kinlg4u/sQAIPRMYd5N9CKG9/lZ5MZNWFe RtFuhTvN3Mrchei3ngIy2Po5dDAZrV0Gbh65aSDnk6s9qbXwpy3HnnlzHnBla6RL kjaPDlSSPlBziiaEdXUFIj/MEtxTTMGvC9aXbZiQYFyUJS+tnqlpoeSvRgJCRKhf IT8s9s7xmNePU1jXpNK0LaWJLnpLddb+dqdIRGBLreI0hlMfvjr4qCn41ZfVbARM E5xLL0jDYRRmeNuzP+fT5FGaSgt9uBlBqlsXFmSZM8tBfImEMlVeG0HfK3qXG5n1 thqx5thth2G2SOkr+m8zUDjcuCIkUSOa5KDslW1k8MX9sN1US9NsPrfT3EqdBuv3 9QoKJMqd8FLUy/gsALM1wt2bbqdaJW9ecEs5kpV4yqwzjtOs21jTaOJQHYLVmhrU aYvz5BK71iT9dmIn4FuZEhYaCltHnqZwQRzZZEh5U0tdXrfyy9ztenEEEaSeOjxy B9FVJxo9WbYeBt9iBRJVpT8mwawLseaL229lI2NvM9eB1loIOfyHRtNtVU98mIg9 RsIKW6a4hp0iCPDhxd6OII1B340wtcMo6Dz22TiUoHJaHG0Rkhab+hx/TQnhbCT9 FoVzW20jUsHU10Hg/9VmhYrCI3fZfAH0nqRSV4xsOqRwmZD1E7ff1GXZUx6NVBxg gc6lh7bpOHZloZC+DU0A =Ldgh -----END PGP SIGNATURE-----