1 |
Jonathan Callen <jcallen@g.o> wrote: |
2 |
|
3 |
> On 05/26/2014 03:44 PM, covici@××××××××××.com wrote: |
4 |
> > Hi. I have noticed that when I bootup using systemd, till I run |
5 |
> > ntpdate, the times are 4 hours earlier than they should be. Do I |
6 |
> > need an hwclock unit somewhere, or some other command to fix? I |
7 |
> > don't think the clock is actually wrong, its got to have something |
8 |
> > to do with the timezone. |
9 |
> > |
10 |
> > Thanks in advance for any suggestions. |
11 |
> > |
12 |
> |
13 |
> First, make sure that the system time zone is correct by making sure |
14 |
> that /etc/localtime is a symlink to your current timezone (in |
15 |
> /usr/share/zoneinfo). |
16 |
> |
17 |
> If the only operating system you boot on the machine is Linux (or, |
18 |
> generally, if you *don't* use Windows): |
19 |
> |
20 |
> 1) Set your BIOS clock to the current time *in UTC*. |
21 |
> 2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of |
22 |
> "LOCAL") |
23 |
> |
24 |
> If you *do* dual-boot to Windows (and don't want to use the |
25 |
> unsupported methods to make Windows aware that the BIOS time is UTC): |
26 |
> |
27 |
> 1) Set your BIOS clock to the current *local* time |
28 |
> 2) Ensure that the last line of /etc/adjtime reads "LOCAL" (instead of |
29 |
> "UTC"). |
30 |
> |
31 |
> If you dual-boot Windows 7 or earlier and want to use that unsupported |
32 |
> method mentioned above: |
33 |
> |
34 |
> 1) Set your BIOS clock to the current time *in UTC*. |
35 |
> 2) Ensure that the last line of /etc/adjtime reads "UTC" (instead of |
36 |
> "LOCAL") |
37 |
> 3) In Windows, in the registry key |
38 |
> "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" |
39 |
> set the value "RealTimeIsUniversal" (a DWORD if you have to create it) |
40 |
> to "1". |
41 |
> |
42 |
> If you use Windows 8, in addition to the above, you have to disable |
43 |
> Windows from ever writing the time to the BIOS clock, otherwise on |
44 |
> shutdown it will reset the BIOS time to local time. |
45 |
|
46 |
OK, thanks, I have no /etc/adjtime at all, and I have two files, |
47 |
/etc/localtime (not a link) and /etc/timezone. Should I delete the |
48 |
later and change the former to a link? |
49 |
|
50 |
-- |
51 |
Your life is like a penny. You're going to lose it. The question is: |
52 |
How do |
53 |
you spend it? |
54 |
|
55 |
John Covici |
56 |
covici@××××××××××.com |