* Incorrect system time
@ 2018-05-09 20:35 Jone
2018-05-09 18:55 ` Pierre Neidhardt
0 siblings, 1 reply; 10+ messages in thread
From: Jone @ 2018-05-09 20:35 UTC (permalink / raw)
To: help-guix
Hi all! I got confused with this:
Xfce panel clock show the right time, in my config.scm:
...
(operating-system
...
(timezone "Europe/Moscow")
...
but:
sudo hwclock --localtime
2018-05-09 19:53:59.559850+0300 (Ok)
sudo hwclock --utc
2018-05-09 22:54:06.184854+0300 (wrong!)
and time in system logs too are incorrect.
In short, I need set system date/time for "Europe/Moscow",
everywhere.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 20:35 Incorrect system time Jone
@ 2018-05-09 18:55 ` Pierre Neidhardt
2018-05-09 23:00 ` Jone
0 siblings, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-05-09 18:55 UTC (permalink / raw)
To: Jone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 620 bytes --]
I guess this explains the wrong timestamps of your e-mails! :)
Moscow is UTC+3.
`hwclock --localtime` should return 16:53:59 (UTC-3) while
`hwclock --utc` should return 19:53:59 (the current time).
So your hardware slock is wrong. You can fix it with `hwclock --systohc`.
Do you run a dual boot with Windows? If this is the case, you have to
configure Windows to use UTC time instead of localtime, otherwise it
will offset the hardware clock everytime you boot Windows.
--
Pierre Neidhardt
The trouble with doing something right the first time is that nobody
appreciates how difficult it was.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 18:55 ` Pierre Neidhardt
@ 2018-05-09 23:00 ` Jone
2018-05-09 20:10 ` Pierre Neidhardt
2018-05-09 20:24 ` Oleg Pykhalov
0 siblings, 2 replies; 10+ messages in thread
From: Jone @ 2018-05-09 23:00 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix
> I guess this explains the wrong timestamps of your e-mails! :)
Previously, did not pay attention, but wrong time in system log is
extremely undesirable.
> You can fix it with `hwclock --systohc`
.. and no changes. ??
> Do you run a dual boot with Windows?
I forgot long ago what is dual boot ;)
In all my previous distribution command 'date' displays the system time,
and system time was the single time and equaled to my timezone.
Maybe hardware troubles.. but it is very annoying.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 23:00 ` Jone
@ 2018-05-09 20:10 ` Pierre Neidhardt
2018-05-10 0:19 ` Jone
2018-05-09 20:24 ` Oleg Pykhalov
1 sibling, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-05-09 20:10 UTC (permalink / raw)
To: Jone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 86 bytes --]
Another thing: is ntp running?
> sudo herd status ntpd
--
Pierre Neidhardt
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 20:10 ` Pierre Neidhardt
@ 2018-05-10 0:19 ` Jone
2018-05-13 3:02 ` Incorrect system time, Re: Incorrect system time, " Chris Marusich
0 siblings, 1 reply; 10+ messages in thread
From: Jone @ 2018-05-10 0:19 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: help-guix
> sudo herd status ntpd
Status of ntpd:
It is started.
Running value is 14818.
It is enabled.
Provides (ntpd).
Requires (user-processes networking).
Conflicts with ().
Will be respawned.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time, Re: Incorrect system time, Incorrect system time
2018-05-10 0:19 ` Jone
@ 2018-05-13 3:02 ` Chris Marusich
0 siblings, 0 replies; 10+ messages in thread
From: Chris Marusich @ 2018-05-13 3:02 UTC (permalink / raw)
To: Jone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]
Jone <yeger9@gmail.com> writes:
>> I guess this explains the wrong timestamps of your e-mails! :)
>
> Previously, did not pay attention, but wrong time in system log is
> extremely undesirable.
>
>> You can fix it with `hwclock --systohc`
>
> .. and no changes. ??
Currently, Guix/GuixSD will not set your hardware clock. How is Guix
supposed to know what time it is? This is one of those things, like
disk partitioning, that falls outside of the "functional bubble" in
which Guix lives. You need to set the hardware clock yourself. The
system clock will be set by ntpd if it is running.
For more information on the difference between the hardware clock and
the system clock, see "Clocks in a Linux System" in "man hwclock".
Jone <yeger9@gmail.com> writes:
>> sudo herd status ntpd
>
> Status of ntpd:
> It is started.
> Running value is 14818.
> It is enabled.
> Provides (ntpd).
> Requires (user-processes networking).
> Conflicts with ().
> Will be respawned.
I wonder if there are any errors in your system log related to ntpd?
According to "man ntpd": "Normally, ntpd exits with a message to the
system log if the offset exceeds the panic threshold, which is 1000 s by
default."
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 23:00 ` Jone
2018-05-09 20:10 ` Pierre Neidhardt
@ 2018-05-09 20:24 ` Oleg Pykhalov
2018-05-09 20:42 ` Oleg Pykhalov
` (2 more replies)
1 sibling, 3 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2018-05-09 20:24 UTC (permalink / raw)
To: Jone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 725 bytes --]
Hello Jone,
Jone <yeger9@gmail.com> writes:
[…]
> In all my previous distribution command 'date' displays the system time,
> and system time was the single time and equaled to my timezone.
They should not be equal, because they are different timezones. :-)
--8<---------------cut here---------------start------------->8---
$ TZ="Europe/Moscow" date
Wed 9 May 23:16:52 MSK 2018
$ TZ="UTC" date
Wed 9 May 20:17:27 UTC 2018
--8<---------------cut here---------------end--------------->8---
> Maybe hardware troubles.. but it is very annoying.
Could you show your ‘(operating-system (services …))’ services field
(guessing it's a problem of missing ‘ntp-service’)?
Thanks,
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 20:24 ` Oleg Pykhalov
@ 2018-05-09 20:42 ` Oleg Pykhalov
2018-05-10 0:37 ` Jone
2018-05-10 0:48 ` Jone
2 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2018-05-09 20:42 UTC (permalink / raw)
To: Jone; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 511 bytes --]
Oleg Pykhalov <go.wigust@gmail.com> writes:
> Hello Jone,
>
> Jone <yeger9@gmail.com> writes:
>
> […]
>
>> In all my previous distribution command 'date' displays the system time,
>> and system time was the single time and equaled to my timezone.
>
> They should not be equal, because they are different timezones. :-)
>
> $ TZ="Europe/Moscow" date
> Wed 9 May 23:16:52 MSK 2018
>
> $ TZ="UTC" date
> Wed 9 May 20:17:27 UTC 2018
Probably I wrong read, though. Sorry if it is true.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 20:24 ` Oleg Pykhalov
2018-05-09 20:42 ` Oleg Pykhalov
@ 2018-05-10 0:37 ` Jone
2018-05-10 0:48 ` Jone
2 siblings, 0 replies; 10+ messages in thread
From: Jone @ 2018-05-10 0:37 UTC (permalink / raw)
To: Oleg Pykhalov; +Cc: help-guix
Oleg, ‘ntp-service’ is part of dektop-services or something like
that. In any case ntpd process is running.
> They should not be equal, because they are different timezones. :-)
In Gentoo, or in OpenSUSE 'date' displays time for my timezone, but here so
works 'date -u'.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Incorrect system time
2018-05-09 20:24 ` Oleg Pykhalov
2018-05-09 20:42 ` Oleg Pykhalov
2018-05-10 0:37 ` Jone
@ 2018-05-10 0:48 ` Jone
2 siblings, 0 replies; 10+ messages in thread
From: Jone @ 2018-05-10 0:48 UTC (permalink / raw)
To: Oleg Pykhalov; +Cc: help-guix
In any case, when I look at my watch and see 22:00 and then I look in
/var/log/messages and see there 01:00.. it's no good.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-05-13 3:03 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-09 20:35 Incorrect system time Jone
2018-05-09 18:55 ` Pierre Neidhardt
2018-05-09 23:00 ` Jone
2018-05-09 20:10 ` Pierre Neidhardt
2018-05-10 0:19 ` Jone
2018-05-13 3:02 ` Incorrect system time, Re: Incorrect system time, " Chris Marusich
2018-05-09 20:24 ` Oleg Pykhalov
2018-05-09 20:42 ` Oleg Pykhalov
2018-05-10 0:37 ` Jone
2018-05-10 0:48 ` Jone
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.