Hey everbody. Since this thread isn't solved and I have investigated the same problem but couldn't solve it.
The Situation: I have a PC and a laptop. Both run the exact same FreeBSD 11-RELEASE. On both the CMOS-clock is set to UTC and they run the same timezone configuration.
I live in Norway so my timezone is set to
in my
~/.tcshrc. My timezone is +1 hour ahead from UTC.
When I type
date
on my PC ist shows the right time (UTC+1), but on my laptop it shows me UTC-time (-1 hour from my place).
I tried setting the timezone in
/etc/login.conf instead of my shell's configuration, which also works fine on my PC, but does nothing on my laptop.
I then remembered that I maybe, during installation on my laptop, choose that my CMOS-clock is set to local time and started investigating...
As I said, the CMOS-clock on both machines is set to UTC.
ps aux
shows
adjkerntz -i runs on my laptop, which is not the case on my PC.
Further is the
sysctl machdep.adjkerntz
variable on my PC
=0
and on my laptop on
=-3600
(which is 3600 seconds/24 hours).
I then killed the running
adjkerntz -i
on my laptop an then changed
Code:
sysctl machdep.adjkerntz=0
machdep.adjkerntz -3600 -> 0
Still that made no difference and my laptop shows the wrong time.
I also couldn't figure out how the
adjkerntz -i
process gets startet (it's not from
cron)
. I searched through some
/etc/rc. files but there where
no differences between my PC and my laptop.
I would really like to understand how timezone and
adjkerntz
interact and what configuration is differnt when choosing CMOS is set to localtime during install.
Somebody who knows that?
Thanks!