1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA512 |
3 |
|
4 |
On 05/26/2014 03:44 PM, covici@××××××××××.com wrote: |
5 |
> Hi. I have noticed that when I bootup using systemd, till I run |
6 |
> ntpdate, the times are 4 hours earlier than they should be. Do I |
7 |
> need an hwclock unit somewhere, or some other command to fix? I |
8 |
> don't think the clock is actually wrong, its got to have something |
9 |
> to do with the timezone. |
10 |
> |
11 |
> Thanks in advance for any suggestions. |
12 |
> |
13 |
|
14 |
First, make sure that the system time zone is correct by making sure |
15 |
that /etc/localtime is a symlink to your current timezone (in |
16 |
/usr/share/zoneinfo). |
17 |
|
18 |
If the only operating system you boot on the machine is Linux (or, |
19 |
generally, if you *don't* use Windows): |
20 |
|
21 |
1) Set your BIOS clock to the current time *in UTC*. |
22 |
2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of |
23 |
"LOCAL") |
24 |
|
25 |
If you *do* dual-boot to Windows (and don't want to use the |
26 |
unsupported methods to make Windows aware that the BIOS time is UTC): |
27 |
|
28 |
1) Set your BIOS clock to the current *local* time |
29 |
2) Ensure that the last line of /etc/adjtime reads "LOCAL" (instead of |
30 |
"UTC"). |
31 |
|
32 |
If you dual-boot Windows 7 or earlier and want to use that unsupported |
33 |
method mentioned above: |
34 |
|
35 |
1) Set your BIOS clock to the current time *in UTC*. |
36 |
2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of |
37 |
"LOCAL") |
38 |
3) In Windows, in the registry key |
39 |
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" |
40 |
set the value "RealTimeIsUniversal" (a DWORD if you have to create it) |
41 |
to "1". |
42 |
|
43 |
If you use Windows 8, in addition to the above, you have to disable |
44 |
Windows from ever writing the time to the BIOS clock, otherwise on |
45 |
shutdown it will reset the BIOS time to local time. |
46 |
|
47 |
- -- |
48 |
Jonathan Callen |
49 |
-----BEGIN PGP SIGNATURE----- |
50 |
Version: GnuPG v2.0.22 (GNU/Linux) |
51 |
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ |
52 |
|
53 |
iQIcBAEBCgAGBQJThBBqAAoJELHSF2kinlg4u/sQAIPRMYd5N9CKG9/lZ5MZNWFe |
54 |
RtFuhTvN3Mrchei3ngIy2Po5dDAZrV0Gbh65aSDnk6s9qbXwpy3HnnlzHnBla6RL |
55 |
kjaPDlSSPlBziiaEdXUFIj/MEtxTTMGvC9aXbZiQYFyUJS+tnqlpoeSvRgJCRKhf |
56 |
IT8s9s7xmNePU1jXpNK0LaWJLnpLddb+dqdIRGBLreI0hlMfvjr4qCn41ZfVbARM |
57 |
E5xLL0jDYRRmeNuzP+fT5FGaSgt9uBlBqlsXFmSZM8tBfImEMlVeG0HfK3qXG5n1 |
58 |
thqx5thth2G2SOkr+m8zUDjcuCIkUSOa5KDslW1k8MX9sN1US9NsPrfT3EqdBuv3 |
59 |
9QoKJMqd8FLUy/gsALM1wt2bbqdaJW9ecEs5kpV4yqwzjtOs21jTaOJQHYLVmhrU |
60 |
aYvz5BK71iT9dmIn4FuZEhYaCltHnqZwQRzZZEh5U0tdXrfyy9ztenEEEaSeOjxy |
61 |
B9FVJxo9WbYeBt9iBRJVpT8mwawLseaL229lI2NvM9eB1loIOfyHRtNtVU98mIg9 |
62 |
RsIKW6a4hp0iCPDhxd6OII1B340wtcMo6Dz22TiUoHJaHG0Rkhab+hx/TQnhbCT9 |
63 |
FoVzW20jUsHU10Hg/9VmhYrCI3fZfAH0nqRSV4xsOqRwmZD1E7ff1GXZUx6NVBxg |
64 |
gc6lh7bpOHZloZC+DU0A |
65 |
=Ldgh |
66 |
-----END PGP SIGNATURE----- |