You are not logged in.

#1 2021-05-20 16:52:35

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Discord shows incorrect time

When I use

timedatectl set-timezone Asia/Tehran

it fixes the discord time, but messes the system clock (It shows with +4:30 delay as opposed to being fine before)

How do I fix this?

Last edited by ArshiaAghaei (2021-05-21 13:58:14)

Offline

#2 2021-05-20 17:00:34

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

Re: Discord shows incorrect time

Set your RTC correctly to UTC. It's all covered on the Time wiki page.

Online

#3 2021-05-20 17:17:03

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Re: Discord shows incorrect time

Scimmia wrote:

Set your RTC correctly to UTC. It's all covered on the Time wiki page.

I tried

timedatectl set-local-rtc 0
sudo hwclock --systohc --utc

But the output of the show command is still incorrect

Offline

#4 2021-05-21 02:57:11

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

Re: Discord shows incorrect time

Post the output of `timedatectl`

Online

#5 2021-05-21 04:54:18

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Re: Discord shows incorrect time

Scimmia wrote:

Post the output of `timedatectl`

Changed the hw clock manually from BIOS

Now all is working

But thank you regardless

Offline

#6 2021-05-21 14:01:58

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Re: Discord shows incorrect time

Scimmia wrote:

Post the output of `timedatectl`

Nevermind, the system clock got messed up again

Here's what I tried to do:

timedatectl set-timezone UTC
sudo hwclock --systohc --utc
timedatectl set timezone Asia/Tehran

But it seems the hwclock is reset too.

Here's the output of timedatectl:

[arshia@arshia-pc ~]$ timedatectl
               Local time: Fri 2021-05-21 18:31:43 UTC
           Universal time: Fri 2021-05-21 18:31:43 UTC
                 RTC time: Fri 2021-05-21 18:31:43
                Time zone: UTC (UTC, +0000)
System clock synchronized: no
              NTP service: inactive
          RTC in local TZ: no

Offline

#7 2021-05-21 15:11:15

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

Re: Discord shows incorrect time

Well of course it's not working, your timezone is UTC and your RTC is set to local time. You already said you'd fixed both of those.

Online

#8 2021-05-21 20:29:03

xerxes_
Member
Registered: 2018-04-29
Posts: 1,070

Re: Discord shows incorrect time

Enable time synchronization by command 'timedatectl set-ntp true' or by 'systemctl start systemd-timesyncd.service' and 'systemctl enable systemd-timesyncd.service' .

Offline

#9 2021-05-22 03:30:30

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Re: Discord shows incorrect time

Scimmia wrote:

Well of course it's not working, your timezone is UTC and your RTC is set to local time. You already said you'd fixed both of those.

I did, but ig it changed it automatically

Offline

#10 2021-05-22 08:13:40

ArshiaAghaei
Member
Registered: 2021-05-19
Posts: 22

Re: Discord shows incorrect time

xerxes_ wrote:

Enable time synchronization by command 'timedatectl set-ntp true' or by 'systemctl start systemd-timesyncd.service' and 'systemctl enable systemd-timesyncd.service' .

It fixes the hardware clock until the next reboot

Offline

#11 2021-05-22 16:23:35

xerxes_
Member
Registered: 2018-04-29
Posts: 1,070

Re: Discord shows incorrect time

https://www.howtogeek.com/323390/how-to … l-booting/
And option three: change time in bios by that difference. So for example, if your time on Linux is UTC+1, change it in bios to UTC, so the time in bios will be 1 hour back and on Linux time will be good from beginning.

Offline

Board footer

Powered by FluxBB