Bug 64134 - non-root users should be able to select a different time zone
Summary: non-root users should be able to select a different time zone
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-12 13:07 UTC by Wilbert Berendsen
Modified: 2015-02-06 17:54 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.10


Attachments
attachment-2118-0.html (1.18 KB, text/html)
2015-02-06 11:46 UTC, ROUCARIES Bastien
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wilbert Berendsen 2003-09-12 13:07:31 UTC
Version:            (using KDE 3.1.3)
Installed from:    Gentoo
Compiler:          gcc version 3.2.1
OS:          Linux (i686) release 2.4.20-ck6

Maybe I'm wrong but it would be nice if normal users in the Date/Time module of kconfig could set a different timezone (TZ variable). This would not only affect the clock applet (which has its own timezone config) but also times in mails, etc.

It might be useful for users who have not root access.
Comment 1 Luke-Jr 2005-02-12 06:59:03 UTC
To accomplish changing the user's local timezone for applications after KDE has been started, the TZ variable can be initialised with a path to the user's KDE config dir (eg TZ=${KDEHOME}/share/mytime). If ${KDEHOME}/share/mytime does not exist when KDE starts, it can be symlinked to /etc/localtime. 
Comment 2 Lukáš Tinkl 2013-12-05 23:02:57 UTC
This is fixed as of at least 4.10
Comment 3 Luke-Jr 2013-12-05 23:13:30 UTC
I don't see any such setting in 4.10.5...
Comment 4 Lukáš Tinkl 2013-12-05 23:29:31 UTC
Aha, I must have misunderstood your problem... So you basically want a "fake" timezones for certain applications?
Comment 5 Luke-Jr 2013-12-05 23:44:34 UTC
No, I just want to set a global timezone per-user.
I'm looking for this in System Settings->Common A&B->Locale->Country/Region & Language.
Comment 6 Christoph Feck 2013-12-15 01:07:08 UTC
Luke, does changing the timezone via System Settings > Date & Time > Time Zone tab work?
Comment 7 Luke-Jr 2013-12-15 01:35:20 UTC
No.

1) Select a timezone
2) Click Apply button (nothing happens)
2b) Observe "Current local time zone:" remains "UTC (UTC)"
3) Open Konsole, run `date`, observe UTC result
3b) Observe environment has no TZ variable set
4) Change System Settings to another applet (Font Management)
4b) I am prompted to apply or discard changes; choose Apply
4c) Error dialog pops up "Unable to authenticate/execute the action: 3, "
5) Change System Settings back to Date & Time applet
6) Switch back to Time Zone tab
6b) Observe everything remains UTC
Comment 8 Christoph Feck 2013-12-15 02:53:45 UTC
Which distribution are you using? There were some changes in underlying commands, and KDE probably has to be adapted. Please check if your bug is already reported at https://bugs.kde.org/buglist.cgi?product=systemsettings&component=kcm_clock&bug_status=UNCONFIRMED&bug_status=CONFIRMED&bug_status=ASSIGNED&bug_status=REOPENED

If not, create a new bug for systemsettings.
Comment 9 Luke-Jr 2013-12-15 02:59:20 UTC
Gentoo. But this shouldn't be a distro-specific issue as it doesn't (and can't afaik) involve running any commands to implement.
Comment 10 Christoph Feck 2013-12-15 03:33:49 UTC
See discussion at bug 317999 comment #11.
Comment 11 David Edmundson 2015-02-04 21:13:28 UTC
This is now do-able by changing your polkit config.

Ubuntu and Fedora both ship default configs that allow any user to change time/timezone
Comment 12 Luke-Jr 2015-02-04 21:21:04 UTC
This allows different users to set different timezones?

Is it out of the question to implement a more portable solution for users who do not wish to install/use polkit? I explained how it can be done with standard *nix TZ var in comment 1.
Comment 13 David Edmundson 2015-02-05 20:08:00 UTC
*** Bug 201905 has been marked as a duplicate of this bug. ***
Comment 14 ROUCARIES Bastien 2015-02-06 11:46:52 UTC
Created attachment 90940 [details]
attachment-2118-0.html

Le 5 févr. 2015 21:08, "David Edmundson" <kde@davidedmundson.co.uk> a écrit
:
>
> https://bugs.kde.org/show_bug.cgi?id=64134
>
> David Edmundson <kde@davidedmundson.co.uk> changed:
>
>            What    |Removed                     |Added
>
----------------------------------------------------------------------------
>                  CC|
|roucaries.bastien+bug@gmail
>                    |                            |.com
>
> --- Comment #13 from David Edmundson <kde@davidedmundson.co.uk> ---
> *** Bug 201905 has been marked as a duplicate of this bug. ***

Could you please explain why it is duplicate closed ?

Thanks
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 15 roucaries 2015-02-06 17:54:29 UTC
So this bug should be reopen