You are not logged in.

#1 2016-02-10 16:53:23

PayterX
Member
Registered: 2014-08-11
Posts: 9

Problems with setting localtime

I've been having strange problems with my installation lately. My current problem is not being able to set localtime, so everything is showing as UTC.

Trying to set it manually:

sudo hwclock --systohc --utc
sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime

Still has it set to UTC

timedatectl status                      
      Local time: Wed 2016-02-10 16:49:03 
  Universal time: Wed 2016-02-10 16:49:03 UTC
        RTC time: Wed 2016-02-10 16:49:03
       Time zone: US/Eastern (, +0000)
 Network time on: yes
NTP synchronized: yes
 RTC in local TZ: no

Notice how it says

US/Eastern (, +0000)

timedatectl list-timezones shows only one timezone

timedatectl list-timezones 
UTC

Any idea how to get this working agian? It's stopping some programs from working (like pinta), and is annoying not having my computer show the correct time.

Thanks

Offline

#2 2016-02-10 16:55:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problems with setting localtime

What does `file /usr/share/zoneinfo/US/Eastern` tell you?

Offline

#3 2016-02-10 17:19:42

PayterX
Member
Registered: 2014-08-11
Posts: 9

Re: Problems with setting localtime

$ file /usr/share/zoneinfo/US/Eastern 
/usr/share/zoneinfo/US/Eastern: symbolic link to `../posixrules' 

Offline

#4 2016-02-10 17:22:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problems with setting localtime

Yeah, that's not right. Reinstall the tzdata package.

Offline

#5 2016-02-10 17:24:32

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,962
Website

Re: Problems with setting localtime

whoops

Last edited by ugjka (2016-02-10 17:24:55)

Offline

#6 2016-02-10 17:25:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Problems with setting localtime

PayterX wrote:
$ file /usr/share/zoneinfo/US/Eastern 
/usr/share/zoneinfo/US/Eastern: symbolic link to `../posixrules' 

Do you know why is this? It looks like a prank.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-02-10 17:26:47

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Problems with setting localtime

US/Eastern and posixrules should be the same file (hardlinked). I'm guessing this is a side effect of the problems here: https://bbs.archlinux.org/viewtopic.php?id=208376

Offline

#8 2016-02-10 17:28:13

PayterX
Member
Registered: 2014-08-11
Posts: 9

Re: Problems with setting localtime

Sorry I guess I was connected to my server when I ran that command. On my arch computer it said something about being "empty"

Reinstall of tzdata gave tons of these errors

tzdata: /usr/share/zoneinfo/right/US/East-Indiana exists in filesystem, etc.

forcing the install with --force gives

$ file /usr/share/zoneinfo/US/Eastern
/usr/share/zoneinfo/US/Eastern: timezone data, version 2, 5 gmt time flags, 5 std time flags, no leap seconds, 236 transition times, 5 abbreviation chars

It all works now. Thank you!

EDIT:

seems there are a lot of problems stemming from this post
https://bbs.archlinux.org/viewtopic.php?id=208376

I guess i'll have to do a full reinstall of the base packages with the --force command

Last edited by PayterX (2016-02-10 17:31:36)

Offline

Board footer

Powered by FluxBB