You are not logged in.

#1 2019-09-11 19:57:00

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Timezone problem [SOLVED]

Hi , this is the problem im dealing with it everyday but i never take it serious to ask, but now im asking it

When i usually install arch linux , i set my timezone to Asia/Tehran using that linking technic by creating a symolink and it works really fine and i have correct time , but then i install Plank and try to start it via terminal wich outputs an error and doesnt start : an error related to wrong timezone or incorrect time or sth like this (my googles result this)

then i try to set my time zone to UTC wich fixes the plank problem

and now im getting the wrong time and changing timezone to Asia/Tehran doesnt make any changes :

timedatectl set-timezone Asia/Tehran

Last edited by erfanjoker (2019-09-11 21:16:51)

Offline

#2 2019-09-11 20:37:21

seth
Member
Registered: 2012-09-03
Posts: 12,702

Re: Timezone problem [SOLVED]

or sth like this

https://bbs.archlinux.org/viewtopic.php?id=57855

Likewise

doesnt make any changes

is too unspecific - the clock in your desktop shell will probably not adapt to this change w/o a restart, but calling "date" after making the change should reflect it.

Offline

#3 2019-09-11 20:49:21

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Timezone problem [SOLVED]

the plank error was this wich fixed by setting time to utc :

GLib-CRITICAL (recursed) **: init_zone_from_iana_info: assertion 'size >= sizeof (struct tzhead) && memcmp (header, "TZif", 4) == 0' failed

my problem is setting my current time zone to Asia/Tehran wich is a command with no output ofcourse, and nothing changes in action : my time zone is  utc

im using Gotham conky to show my time , but i also see this time in telegram messages time wich is the same as conky time

Offline

#4 2019-09-11 20:51:03

loqs
Member
Registered: 2014-03-06
Posts: 8,791

Re: Timezone problem [SOLVED]

What is the output of timedatectl and are those values correct?

Offline

#5 2019-09-11 20:58:51

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Timezone problem [SOLVED]

this is the output of timedatectl and is in sync with conky time but now in iran its 1:28 not the 5:58 :

╭─erfan at erfan in /home/erfan
╰─λ timedatectl                                        0 < 05:58:04
               Local time: Thu 2019-09-12 05:58:06 +0430
           Universal time: Thu 2019-09-12 01:28:06 UTC
                 RTC time: Thu 2019-09-12 05:58:06
                Time zone: Asia/Tehran (+0430, +0430)
System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: yes

Warning: The system is configured to read the RTC time in the local time zone.
         This mode cannot be fully supported. It will create various problems
         with time zone changes and daylight saving time adjustments. The RTC
         time is never updated, it relies on external facilities to maintain it.
         If at all possible, use RTC in UTC by calling
         'timedatectl set-local-rtc 0'.

Last edited by erfanjoker (2019-09-11 20:59:55)

Offline

#6 2019-09-11 21:01:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 28,058
Website

Re: Timezone problem [SOLVED]

erfanjoker wrote:
System clock synchronized: no
              NTP service: inactive

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2019-09-11 21:03:33

seth
Member
Registered: 2012-09-03
Posts: 12,702

Re: Timezone problem [SOLVED]

It's now 01:29:57 in Tehran and 21:01:35 in Greenwich, so your clock is off by the Tehran skew.
Update the time from a timeserver or set it from a wall clock.

Edit: can you start plank with this configuration?
If not:

pacman -Qikk tzdata

Last edited by seth (2019-09-11 21:04:31)

Offline

#8 2019-09-11 21:16:27

erfanjoker
Member
From: Tabriz / Iran
Registered: 2017-03-26
Posts: 75
Website

Re: Timezone problem [SOLVED]

Thank you all , solved by setting time from ntp server using ntpd service

Offline

Board footer

Powered by FluxBB