Egypt (Timezone Africa/Cairo – GMT +3) started using daylight savings time a few days ago, but the timezone settings still show GMT +2 for me, what should I do? Thanks!
Please post the output of timedatectl
like this
$ timedatectl
Local time: Sun 2023-04-30 19:57:22 EEST
Universal time: Sun 2023-04-30 16:57:22 UTC
RTC time: Sun 2023-04-30 16:57:22
Time zone: Africa/Cairo (EEST, +0300)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
If using gnome also please show a screenshot of the settings control panel like this.
Output of timedatectl
:
$ timedatectl
Local time: Sun 2023-04-30 19:01:35 EET
Universal time: Sun 2023-04-30 17:01:35 UTC
RTC time: Sun 2023-04-30 17:01:36
Time zone: Africa/Cairo (EET, +0200)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Settings in Gnome:
Automatic timezone was turned off and I turned it on but it didn’t matter.
Edit: I just realized that my system is a bit outdated as I’ve been running dnf update
less frequently due to bandwidth quota reasons, I’m doing it now and I’ll reply if it fixes my problem.
Final edit: TL;DR: make sure tzdata
is up to date (sudo dnf update
) and that’s all.
Okay so I did two things to fix the problem:
- I ran
sudo dnf update
, which updated the kernel among various packages, including two calledtzdata
andtzdata-java
, which I suspect is what actually fixed my problem. - I also went into my bios and manually added 1 hour to the time, but I don’t believe that was important since the OS will override that anyways.
Output of timedatectl
now:
$ timedatectl
Local time: Sun 2023-04-30 20:42:13 EEST
Universal time: Sun 2023-04-30 17:42:13 UTC
RTC time: Sun 2023-04-30 17:42:13
Time zone: Africa/Cairo (EEST, +0300)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Thank you @computersavvy for trying to help, your time is valued and appreciated!
Actually that is important. The bios time should be set to UTC since NTP expects that. Changing it by an hour can cause problems in keeping time in sync as well as causing time to be displayed and used improperly. The next reboot will likely show an incorrect time.
Check the output of timedatectl
again and verify that everything is actually correct. I suspect it is not.
Correct. I believe Egypt decided to use DST (again) only very recently, so tzdata had to be updated:
$ sudo dnf changelog tzdata
[...]
* Thu Mar 23 00:00:00 2023 Patsy Griffin <patsy@redhat.com> - 2023a-1
- Rebase to tzdata-2023a
- Egypt reintroduced DST, from April through October.
I rebooted and everything seems to be alright. Thanks again.
$ sudo hwclock && timedatectl
2023-04-30 21:14:01.233714+03:00
Local time: Sun 2023-04-30 21:14:02 EEST
Universal time: Sun 2023-04-30 18:14:02 UTC
RTC time: Sun 2023-04-30 18:14:02
Time zone: Africa/Cairo (EEST, +0300)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Looks good and glad you got it fixed.