Centos7, invalid offset for UTC for Sweden, says UTC+00
Hi all :)
I got a weird error that I don't seem to be able to fix. I think I tried everything but I can't since it's still invalid. I use UTC time and the server is in Sweden so the UTC-offset should be +01 but it's +00 The local time was wrong, as it used to be when I use UTC so all other times I just skipped using UTC and set it myself and then used NTP to adjust it. With this installation I figured I'm gonna do it right so I set to use UTC but later saw that the local time was an hour off. After googling about it I found that the hwclock wasn't UTC. I fixed that but still had problem with correct system time and after fiddling for some hours trying to fix it I saw this error. I just now tried the GUI to check and yep, the offset for Sweden is corrupt. Norways and Finlands is correct but Sweden has a +00-offset. I thought the offset was like hardcoded into each land but it seems it ain't How the Argh!! do I fix this? //B52 |
Some info:
Code:
[root@webserver01 /]# timedatectl Code:
[root@webserver01 /]# hwclock --debug |
Code:
Local time: Fri 2018-02-09 17:53:06 UTC What does the output of /etc/localtime show? zdump -v /etc/localtime | grep 2018 |
Code:
zdump -v /etc/localtime | grep 2018 Code:
zdump -v /etc/localtime Code:
[root@webserver01 private]# zdump -v /etc/localtime |
What happens when you run the command
timedatectl set-timezone Europe/Stockholm What does the output of the date command show? |
Code:
[root@webserver01 private]# timedatectl set-timezone Europe/Stockholm Code:
[root@webserver01 private]# date |
I think I tried everything, when I set the UTC-time correct and then set the local time (which I thought I could do) with
Code:
timedatectl set-time |
Interesting problem. I don't have a clue either.
I forgot to ask if the following shows the same information as /etc/localtime. zdump -v /usr/share/zoneinfo/Europe/Stockholm |
I'm not sure how to 'list' /etc/locatime but I did a 'cat' on it... so...
Code:
[root@webserver01 private]# zdump -v /usr/share/zoneinfo/Europe/Stockholm Code:
[root@webserver01 private]# cat /etc/localtime |
This thing sure eludes me :mad:
I can't count how many hours I've spent trying to fix this. I just wanted to do it the "correct" way but I'm starting to think that a reinstall is the only thing that can fix it. "Weeee", just a "few" hours more to install it all, Sigh! I'll wait a little longer in case someone that know sees this and answers. |
There was a recent update that included a new tzdata base. If you have not updated recently that could fix problem.
|
well there sure are some days ago so...
I did that and got an error, OF COURSE :( :( :( I got the repo from lux added so that might be the problem. lux is for ulogd. got this: Code:
--> Processing Dependency: tinycdb for package: 2:postfix-2.10.1-6.el7.lux.1.x86_64 I did see this in the updates to be though: Code:
... So what do I do now............ //////////////// For fun I used to say and still do about how I am (and it kinda suits me) "I'm not a pessimist, I'm an optimistic pessimist.... I know for SURE!!! I'm gonna f**k it up" |
using yum --skip-broken update will not update those broken packages. You could also disable the lux repo.
Correct tzdata is the timezone database. |
OK, I'll disable the lux repo and test that......
|
Yep, seemed to fix my error, Thanks michaelk, you're sure 'da man' :cool: :cool: :cool:
wow, I did not see that coming, a bug big as this?!? dang. I haven't read anything about the update but it sure seemed to fix my problem though. |
All times are GMT -5. The time now is 08:01 AM. |