GNU bug report logs - #33685
Time settings does not work in gnome

Previous Next

Package: guix;

Reported by: swedebugia <at> riseup.net

Date: Sun, 9 Dec 2018 12:07:02 UTC

Severity: normal

To reply to this bug, email your comments to 33685 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#33685; Package guix. (Sun, 09 Dec 2018 12:07:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to swedebugia <at> riseup.net:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 09 Dec 2018 12:07:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: swedebugia <at> riseup.net
To: bug-guix <at> gnu.org
Subject: Time settings does not work in gnome
Date: Sun, 09 Dec 2018 04:06:09 -0800
[Message part 1 (text/plain, inline)]
When I set the time or toggle automatic time in the gnome-control-center
it errors out. The time is still wrong.

sdb <at> antelope ~$ gnome-control-center 

(gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
Timezone '(null)' is unhandled, setting Europe/London as default

(gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
Could not set system to use NTP:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.freedesktop.timedate1 was not provided by any .service files

(gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
g_dbus_connection_call_internal: assertion 'object_path != NULL &&
g_variant_is_object_path (object_path)' failed


sdb <at> antelope ~$ guix --version
guix (GNU Guix) 0.16.0-3.6ddc63e

Installed from git with sudo -E reconf...

config.scm attached.
-- 
Cheers 
Swedebugia
[config.scm (text/plain, attachment)]

Information forwarded to bug-guix <at> gnu.org:
bug#33685; Package guix. (Sun, 09 Dec 2018 12:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 33685 <at> debbugs.gnu.org (full text, mbox):

From: swedebugia <at> riseup.net
To: 33685 <at> debbugs.gnu.org
Cc: bug-Guix <bug-guix-bounces+swedebugia=riseup.net <at> gnu.org>
Subject: Re: bug#33685: Time settings does not work in gnome
Date: Sun, 09 Dec 2018 04:09:50 -0800
On 2018-12-09 13:06, swedebugia <at> riseup.net wrote:
> When I set the time or toggle automatic time in the gnome-control-center
> it errors out. The time is still wrong.
> 
> sdb <at> antelope ~$ gnome-control-center 
> 
> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
> Timezone '(null)' is unhandled, setting Europe/London as default
> 
> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
> Could not set system to use NTP:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.freedesktop.timedate1 was not provided by any .service files
> 
> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
> g_variant_is_object_path (object_path)' failed
> 
> 
> sdb <at> antelope ~$ guix --version
> guix (GNU Guix) 0.16.0-3.6ddc63e
> 
> Installed from git with sudo -E reconf...
> 
> config.scm attached.

Fixed the time manually with 
sudo date -s  1308 +%H%M
(the date and year was correct already)
-- 
Cheers 
Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#33685; Package guix. (Sun, 09 Dec 2018 22:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 33685 <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: swedebugia <at> riseup.net
Cc: 33685 <at> debbugs.gnu.org,
 bug-Guix <bug-guix-bounces+swedebugia=riseup.net <at> gnu.org>
Subject: Re: bug#33685: Time settings does not work in gnome
Date: Sun, 09 Dec 2018 14:33:42 -0800
[Message part 1 (text/plain, inline)]
swedebugia <at> riseup.net writes:

> On 2018-12-09 13:06, swedebugia <at> riseup.net wrote:
>> When I set the time or toggle automatic time in the gnome-control-center
>> it errors out. The time is still wrong.
>> 
>> sdb <at> antelope ~$ gnome-control-center 
>> 
>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
>> Timezone '(null)' is unhandled, setting Europe/London as default
>> 
>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
>> Could not set system to use NTP:
>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>> org.freedesktop.timedate1 was not provided by any .service files
>> 
>> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
>> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
>> g_variant_is_object_path (object_path)' failed
>> 
>> 
>> sdb <at> antelope ~$ guix --version
>> guix (GNU Guix) 0.16.0-3.6ddc63e
>> 
>> Installed from git with sudo -E reconf...
>> 
>> config.scm attached.
>
> Fixed the time manually with 
> sudo date -s  1308 +%H%M
> (the date and year was correct already)

Are you using GuixSD?  If so, is your system time set correctly when you
specify the correct timezone in your operating system configuration
file, reconfigure the system with "guix system reconfigure", and reboot?

If you're using GuixSD, is your system configured to use the NTP
service?  It's included by default in the %desktop-services.

I'm not sure what's going on with gnome-control-center, but what I'm
getting at is that you might not need to use gnome-control-center to set
the time if you've configured your OS to use NTP and an appropriate
timezone.

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33685; Package guix. (Fri, 19 Jul 2019 21:31:01 GMT) Full text and rfc822 format available.

Message #14 received at 33685 <at> debbugs.gnu.org (full text, mbox):

From: Timothy Sample <samplet <at> ngyro.com>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: swedebugia <at> riseup.net, 33685 <at> debbugs.gnu.org,
 bug-Guix <bug-guix-bounces+swedebugia=riseup.net <at> gnu.org>
Subject: Re: bug#33685: Time settings does not work in gnome
Date: Fri, 19 Jul 2019 17:30:18 -0400
Hello,

Chris Marusich <cmmarusich <at> gmail.com> writes:

> swedebugia <at> riseup.net writes:
>
>> On 2018-12-09 13:06, swedebugia <at> riseup.net wrote:
>>> When I set the time or toggle automatic time in the gnome-control-center
>>> it errors out. The time is still wrong.
>>> 
>>> sdb <at> antelope ~$ gnome-control-center 
>>> 
>>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:15.745:
>>> Timezone '(null)' is unhandled, setting Europe/London as default
>>> 
>>> (gnome-control-center:1556): datetime-cc-panel-WARNING **: 13:24:24.324:
>>> Could not set system to use NTP:
>>> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
>>> org.freedesktop.timedate1 was not provided by any .service files
>>> 
>>> (gnome-control-center:1556): GLib-GIO-CRITICAL **: 13:24:34.673:
>>> g_dbus_connection_call_internal: assertion 'object_path != NULL &&
>>> g_variant_is_object_path (object_path)' failed
>>> 
>>> [...]

I just came across this, and it’s broken because we do not provide a
“timedate1” D-Bus service.  Usually, this is something systemd provides.
We have a stand-in for its cousin, “locale1”, but not “timedate1”.
Unless we provide the service somehow (another fork of systemd or a
complicated package like “localed”), GNOME Control Center is not going
to work here.

>>
>> Fixed the time manually with 
>> sudo date -s  1308 +%H%M
>> (the date and year was correct already)
>
> Are you using GuixSD?  If so, is your system time set correctly when you
> specify the correct timezone in your operating system configuration
> file, reconfigure the system with "guix system reconfigure", and reboot?
>
> If you're using GuixSD, is your system configured to use the NTP
> service?  It's included by default in the %desktop-services.
>
> I'm not sure what's going on with gnome-control-center, but what I'm
> getting at is that you might not need to use gnome-control-center to set
> the time if you've configured your OS to use NTP and an appropriate
> timezone.

This is a good point.  Even if we did pull “timedated” out of systemd,
what would it do when someone calls “SetTimezone”?  Update the files in
/etc so that they can be reverted at the next reconfigure?

Actually, maybe!

This would be one way to let GNOME’s “automatic timezone” feature work.
It could figure out where you are, send a message to the “timedate1”
service, which in turn would update the ephemeral timezone settings.  It
doesn’t really matter that your timezone is reset by a reconfigure,
because there’s a daemon running that will fix it for you.

That being said, it would be confusing to set the timezone from GNOME
only to have it revert on reconfigure.  (This is what it does now, but
at least it reverts immediately).

Basically, this could be fixed by providing a “timedate1” service, but
it would have some rough edges.


-- Tim




This bug report was last modified 5 years and 328 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.