Bug 486236 - Cannot change time zone with non-Systemd distro
Summary: Cannot change time zone with non-Systemd distro
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: 6.0.4
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-28 09:52 UTC by gigastarcraft2
Modified: 2024-07-27 04:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.1.4
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gigastarcraft2 2024-04-28 09:52:18 UTC
SUMMARY

STEPS TO REPRODUCE
1. Go to Systemsettings.
2. Go to Date & Time -> Time Zone.
3. Try to change a time zone.

OBSERVED RESULT
I get two errors:
"Unable to set current time"
"Unable to set timezone".

EXPECTED RESULT
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.8.7 Artix Linux OpenRC
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Running command
"sudo ln -sf /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime"
works.
Comment 1 gigastarcraft2 2024-04-28 09:59:33 UTC
I run Systemsettings with konsole and I got his warnings:
"Failed to set current time "org.freedesktop.PolicyKit1.Error.NotAuthorized" "Authorizing for 'org.freedesktop.timedate1.set-time': not authorized""
"Failed to set timezone "org.freedesktop.PolicyKit1.Error.NotAuthorized" "Authorizing for 'org.freedesktop.timedate1.set-timezone': not authorized""
Is it connected to this bug?
https://bugs.kde.org/show_bug.cgi?id=485407
Comment 2 Titouan Camus 2024-04-28 23:12:16 UTC
Cannot reproduce.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-28-generic (64-bit)
Graphics Platform: Wayland
Comment 3 gigastarcraft2 2024-05-27 03:58:17 UTC
(In reply to gigastarcraft2 from comment #1)
> I run Systemsettings with konsole and I got his warnings:
> "Failed to set current time "org.freedesktop.PolicyKit1.Error.NotAuthorized"
> "Authorizing for 'org.freedesktop.timedate1.set-time': not authorized""
> "Failed to set timezone "org.freedesktop.PolicyKit1.Error.NotAuthorized"
> "Authorizing for 'org.freedesktop.timedate1.set-timezone': not authorized""
> Is it connected to this bug?
> https://bugs.kde.org/show_bug.cgi?id=485407

Policykit bug was fixed with 6.0.5 but I still cannot change a time zone...
Comment 4 David Edmundson 2024-05-28 08:19:38 UTC
>"Failed to set current time "org.freedesktop.PolicyKit1.Error.NotAuthorized" "Authorizing for 'org.freedesktop.timedate1.set-time': not authorized""

It's using a systemd path. I assume you don't have systemd?
Comment 5 gigastarcraft2 2024-05-29 13:21:22 UTC
(In reply to David Edmundson from comment #4)
> >"Failed to set current time "org.freedesktop.PolicyKit1.Error.NotAuthorized" "Authorizing for 'org.freedesktop.timedate1.set-time': not authorized""
> 
> It's using a systemd path. I assume you don't have systemd?

No, I use Artix OpenRC. I get warning "System policy prevents changing timezone"
Comment 6 gigastarcraft2 2024-05-29 17:38:19 UTC
(In reply to gigastarcraft2 from comment #5)
> (In reply to David Edmundson from comment #4)
> > >"Failed to set current time "org.freedesktop.PolicyKit1.Error.NotAuthorized" "Authorizing for 'org.freedesktop.timedate1.set-time': not authorized""
> > 
> > It's using a systemd path. I assume you don't have systemd?
> 
> No, I use Artix OpenRC. I get warning "System policy prevents changing
> timezone"

I tried changing time zone using following commands:
Configure the system clock

Set the time zone:
ln -sf /usr/share/zoneinfo/Region/City /etc/localtime

Run hwclock to generate /etc/adjtime:
hwclock --systohc

https://wiki.artixlinux.org/Main/Installation#Configure_the_system_clock

and it worked! Thus I think it is KDE bug and not Artix.
Comment 7 Bug Janitor Service 2024-06-13 03:47:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 gigastarcraft2 2024-07-02 18:55:57 UTC
(In reply to Bug Janitor Service from comment #7)
> Dear Bug Submitter,
> 
> This bug has been in NEEDSINFO status with no change for at least
> 15 days. Please provide the requested information as soon as
> possible and set the bug status as REPORTED. Due to regular bug
> tracker maintenance, if the bug is still in NEEDSINFO status with
> no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
> due to lack of needed information.
> 
> For more information about our bug triaging procedures please read the
> wiki located here:
> https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging
> 
> If you have already provided the requested information, please
> mark the bug as REPORTED so that the KDE team knows that the bug is
> ready to be confirmed.
> 
> Thank you for helping us make KDE software even better for everyone!

Any update?
Comment 9 Nate Graham 2024-07-27 04:06:24 UTC
Fixed by https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2369 for Plasma 6.1.4.