! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add Time&Date adjustment option to properties window and popup menu
Status:
RESOLVED: WONTFIX
Severity:
enhancement
Product:
Xfce4-datetime-plugin
Component:
General

Comments

Description Ruslan 2009-10-28 16:38:27 CET
GNOME analog of this plugin has a useful feature - ability to change system time & date. I'd like to see this feature also in XFCE datetime plugin.
Comment 1 Diego Ongaro 2009-11-08 07:37:06 CET
I don't think this feature would belong in datetime, mainly because the system should be able to set its own time with NTP.
Comment 2 Jeremy Olexa 2010-05-12 02:53:02 CEST
Kinda related, kinda not.

However, I would like to see the ability to add an offset to the display. I have my system time set to UTC and TZ in .bashrc for the local timezone but xfce4-datetime-plugin can only see the system time when it is started.

What do you think?
Comment 3 Landry Breuil editbugs 2013-02-14 21:04:02 CET
Very likely wontfix - it's a complicated task to set date/time in a portable way on all systems where Xfce runs.
Comment 4 Ruslan 2013-02-14 21:17:11 CET
(In reply to comment #3)
> Very likely wontfix - it's a complicated task to set date/time in a portable
> way on all systems where Xfce runs.

This sounds unreasonable. How many non-POSIX systems does XFCE run in? You can always fallback to running date(1) command on POSIX-compliant ones.
Comment 5 Landry Breuil editbugs 2013-02-14 21:34:11 CET
(In reply to comment #4)
> (In reply to comment #3)
> > Very likely wontfix - it's a complicated task to set date/time in a portable
> > way on all systems where Xfce runs.
> 
> This sounds unreasonable. How many non-POSIX systems does XFCE run in? You
> can always fallback to running date(1) command on POSIX-compliant ones.

Provide a patch then.

'Only the superuser may change the date.' sayz the manpage on my system.
Comment 6 Ruslan 2013-02-14 21:55:21 CET
(In reply to comment #5)
> Provide a patch then.

I currently don't have enough time to make full patch with all GUI changes etc.

> 
> 'Only the superuser may change the date.' sayz the manpage on my system.

Nothing prevents a program to use gksudo.
This might look as simple as this:

{
 char* date=getNewDateString();
 const char* cmd="gksudo date -s \"%s\"";
 char* command=malloc(strlen(date)+strlen(cmd));
 sprintf(command,cmd,date);
 int ret=system(command);
 free(date);
 free(command);
 if(ret!=-1)
  success();
 else
  error();
}
Comment 7 Landry Breuil editbugs 2013-02-14 22:17:39 CET
(In reply to comment #6)
> (In reply to comment #5)

> > 'Only the superuser may change the date.' sayz the manpage on my system.
> 
> Nothing prevents a program to use gksudo.

gksudo is not portable either.. what if you need to enter a password ? what if you want to use a yubikey to auth ?

what if on your system policykit is the only way to run things as root ?
Or if you're on linux and systemd is the preferred way to set the date ?

Bug #5924

Reported by:
Ruslan
Reported on: 2009-10-28
Last modified on: 2013-02-26

People

Assignee:
Florian Rivoal
CC List:
3 users

Version

Version:
unspecified

Attachments

Additional information