Posts: 13
Pumukli
Joined: 03 Jan 2014
#1
Hello,

I had time again to tinker with my homeserver and I found an interesting problem.

My BIOS clock is all right, keeps the time and stores the UTC time.
The timezone file contains Europe/Berlin - which is UTC +1 right now.

On the other hand when I issue the"date" command it tells me a wrong time, which is exactly UTC -5 hours!

Hint: when I first realized that there is a problem with my time the timezone file contained United States / New York. I have no idea how it could be there because I 've never set the timezone intentionaly (say during install) to the New York local time. I corrected the file to Europe/Berlin but it seems (after several restarts) that it had no effect.

I also tried to delete the adjtime file and reboot, but it had no effect either.

What should I check?

It is a solo Antix 13.1 system, updated, no dual booting with anything.
Last edited by Pumukli on 13 Nov 2014, 19:56, edited 1 time in total.
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#2
Any Time Zone changes I screw up during install I usually straighten out with dpkg tzdata.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://wiki.debian.org/TimeZoneChanges"
linktext was:"https://wiki.debian.org/TimeZoneChanges"
====================================
Posts: 13
Pumukli
Joined: 03 Jan 2014
#3
Yes, thank you rokytnji, dpkg-reconfigure tzdata did the trick!

Now hwclock --debug shows that everything is as it should be, ... 8:48 PM CET ...
Before the reconfigure that line said ... 2:48 PM EST ...

Now it is obvious that changing the etc(timezone file alone is not enough, there are other hidden things to be changed during a timezone tinkering.