You are not logged in.
When I use
timedatectl set-timezone Asia/Tehranit 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
Set your RTC correctly to UTC. It's all covered on the Time wiki page.
Offline
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 --utcBut the output of the show command is still incorrect
Offline
Post the output of `timedatectl`
Offline
Post the output of `timedatectl`
Changed the hw clock manually from BIOS
Now all is working
But thank you regardless
Offline
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/TehranBut 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: noOffline
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.
Offline
Enable time synchronization by command 'timedatectl set-ntp true' or by 'systemctl start systemd-timesyncd.service' and 'systemctl enable systemd-timesyncd.service' .
Offline
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
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
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