Discussion:
time
(too old to reply)
Stari Karp
2016-05-30 02:57:31 UTC
Permalink
Hi!

I am new Installed FreeBSD 10.3-RELEASE-p3 #0: Tue May 17 08:43:55 UTC 2016
***@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 and I
have a problem with time. How I setup time (I adoing the same from version
6??):
From "Select local or UTC...) I press NO, than America -- North and South,
than United States and Eastern time. On the last question "Does the
abbreviation 'EDT' look reasonable?" I pressed YES.

And here is now 7:55 PM and date shows me 10:55 PM. In /etc/rc.conf I have
also ntpd_enable="YES".

I have the same settings all the time but it doesn't works now.

Thank you.

SK
Jon Radel
2016-05-29 23:08:56 UTC
Permalink
Post by Stari Karp
Hi!
I am new Installed FreeBSD 10.3-RELEASE-p3 #0: Tue May 17 08:43:55 UTC 2016
have a problem with time. How I setup time (I adoing the same from version
From "Select local or UTC...) I press NO, than America -- North and South,
than United States and Eastern time. On the last question "Does the
abbreviation 'EDT' look reasonable?" I pressed YES.
So now FreeBSD knows what time zone you want it to be in, this doesn't
mean the hardware knows what time it is.

man date

will show you how to set the time. Or you can get ntp running and wait
until it syncs the time.
Post by Stari Karp
And here is now 7:55 PM and date shows me 10:55 PM. In /etc/rc.conf I have
also ntpd_enable="YES".
Really? Looks like you sent your mail at 6:57pm EDT????? As a matter
of fact, it is 7:07pm EDT as I write this.

man ntpq

and try the "peers" command in ntpq to see what ntp thinks is happening.
Look at the ntp.conf file to see if it is sensible.
--
--Jon Radel
***@radel.com
Polytropon
2016-05-30 00:18:30 UTC
Permalink
Post by Stari Karp
Hi!
I am new Installed FreeBSD 10.3-RELEASE-p3 #0: Tue May 17 08:43:55 UTC 2016
have a problem with time. How I setup time (I adoing the same from version
From "Select local or UTC...) I press NO, than America -- North and South,
than United States and Eastern time. On the last question "Does the
abbreviation 'EDT' look reasonable?" I pressed YES.
And here is now 7:55 PM and date shows me 10:55 PM. In /etc/rc.conf I have
also ntpd_enable="YES".
I have the same settings all the time but it doesn't works now.
Manually set the date and let ntpd correct it if neccessary.
As root, run "date 0755" (if you want 7:55) or whatever is
approximately the correct time you run the command at. See
"man date" for details on the format to be supplied.

If I remember correctly, the older ntpdate command would
only change the system time up to a certain threshold,
"adjust" it, and you needed to manually set the time "near"
the real time, or supply a specific flag for a "bigger"
system time change. Today's ntpd should handle this fine.



PS.
Answer before question:

From: Jon Radel <***@radel.com>
Subject: Re: time
Date: Sun, 29 May 2016 19:08:56 -0400

And "then":

From: Stari Karp <***@yandex.com>
Subject: time
Date: Sun, 29 May 2016 22:57:31 -0400

This is really magnificent time travel magic at OS level. ;-)
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
Stari Karp
2016-05-30 09:25:45 UTC
Permalink
Post by Polytropon
Post by Stari Karp
Hi!
I am new Installed FreeBSD 10.3-RELEASE-p3 #0: Tue May 17 08:43:55 UTC
2016
I have a problem with time. How I setup time (I adoing the same from
From "Select local or UTC...) I press NO, than America -- North and South,
than United States and Eastern time. On the last question "Does the
abbreviation 'EDT' look reasonable?" I pressed YES.
And here is now 7:55 PM and date shows me 10:55 PM. In /etc/rc.conf I have
also ntpd_enable="YES".
I have the same settings all the time but it doesn't works now.
Manually set the date and let ntpd correct it if neccessary.
As root, run "date 0755" (if you want 7:55) or whatever is
approximately the correct time you run the command at. See
"man date" for details on the format to be supplied.
If I remember correctly, the older ntpdate command would
only change the system time up to a certain threshold,
"adjust" it, and you needed to manually set the time "near"
the real time, or supply a specific flag for a "bigger"
system time change. Today's ntpd should handle this fine.
PS.
Subject: Re: time
Date: Sun, 29 May 2016 19:08:56 -0400
Subject: time
Date: Sun, 29 May 2016 22:57:31 -0400
This is really magnificent time travel magic at OS level. ;-)
Thank you very much.
Bertram Scharpf
2016-05-30 10:12:19 UTC
Permalink
I am new Installed FreeBSD [...] and I have a problem with
Post by Stari Karp
From "Select local or UTC...) I press NO, than America -- North and South,
than United States and Eastern time. On the last question "Does the
abbreviation 'EDT' look reasonable?" I pressed YES.
And here is now 7:55 PM and date shows me 10:55 PM. In /etc/rc.conf I have
also ntpd_enable="YES".
You can set the time zone by just copying the appropriate
file:

# cp -i /usr/share/zoneinfo/America/Denver /etc/localtime

or wherever you reside.

NTP and cron do the rest.

Bertram
--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de
Loading...