LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Daylight saving Eastern Time end (https://www.linuxquestions.org/questions/linux-general-1/daylight-saving-eastern-time-end-4175481622/)

techux 10-21-2013 11:49 AM

Daylight saving Eastern Time end
 
Hi guys.

We have some linux servers, when I got the job, the servers were already configured. Florida.

The servers are using NTP, but how can I be sure that on November 3 (when Daylight Saving Time ends) every servers is gonna update the time correctly?

my /etc/sysconfig/clock shows:

ZONE="America/New_York"
UTC=false
ARC=false


date: Mon Oct 21 12:46:02 EDT 2013

On november 3rd at 2am the clocks are turned backward 1


Thanks

AlucardZero 10-21-2013 12:09 PM

Make sure you have the latest tzdata package available for whatever distro you are running.

Then check with
Code:

zdump -v America/New_York | grep 2013
http://chrisjean.com/2009/03/10/upda...time-on-linux/

suicidaleggroll 10-21-2013 12:31 PM

You could also use date

Code:

$ date
Mon Oct 21 11:31:01 MDT 2013
$ date -d "12 days"
Sat Nov  2 11:31:04 MDT 2013
$ date -d "13 days"
Sun Nov  3 10:31:07 MST 2013


michaelk 10-21-2013 12:59 PM

FYI
UTC=false just means the hardware clock is set to local time
arc=false means that the system is using the standard Unix epoch i.e. 00:00:00 1 Jan 1970.

ntp uses UTC and so the time displayed on your servers is based upon the configured timezone. If your servers are kept updated then they should have the current time zone data which can be verified as stated above.

The timezone file being used is /etc/localtime which should be a copy of the America/New_York in your case.

techux 10-22-2013 09:15 AM

If I run zdump it is what I get, I guess with this the server should update/change the time automatically on November 3, right?

or should I do something else.

Regarding the NTP configuration, is there anything that should be changed?

Quote:

[root@localhost ~]# zdump -v America/New_York |grep 2013
America/New_York Sun Mar 10 06:59:59 2013 UTC = Sun Mar 10 01:59:59 2013 EST isdst=0 gmtoff=-18000
America/New_York Sun Mar 10 07:00:00 2013 UTC = Sun Mar 10 03:00:00 2013 EDT isdst=1 gmtoff=-14400
America/New_York Sun Nov 3 05:59:59 2013 UTC = Sun Nov 3 01:59:59 2013 EDT isdst=1 gmtoff=-14400
America/New_York Sun Nov 3 06:00:00 2013 UTC = Sun Nov 3 01:00:00 2013 EST isdst=0 gmtoff=-18000

techux 10-28-2013 09:09 AM

the date is close, do you guys think I need to configure something else or it should be change automatically on Nov 3?

thanks

michaelk 10-28-2013 09:47 AM

Nope, It should change automatically.

suicidaleggroll 10-28-2013 09:51 AM

Quote:

Originally Posted by techux (Post 5050362)
I guess with this the server should update/change the time automatically on November 3, right?

Quote:

Originally Posted by techux (Post 5053683)
should be change automatically on Nov 3?

Why don't you just try it and see for yourself?
Quote:

Originally Posted by suicidaleggroll (Post 5049796)
You could also use date

Code:

$ date
Mon Oct 21 11:31:01 MDT 2013
$ date -d "12 days"
Sat Nov  2 11:31:04 MDT 2013
$ date -d "13 days"
Sun Nov  3 10:31:07 MST 2013



techux 10-29-2013 08:25 AM

thank you so much. that helped me.

Spect73 10-29-2013 08:55 PM

Quote:

Originally Posted by suicidaleggroll (Post 5049796)
You could also use date

Code:

$ date
Mon Oct 21 11:31:01 MDT 2013
$ date -d "12 days"
Sat Nov  2 11:31:04 MDT 2013
$ date -d "13 days"
Sun Nov  3 10:31:07 MST 2013


Neat. I never realized that 'date' could do that. I guess 'man date' is indeed my friend :)

Coordially

sundialsvcs 10-31-2013 06:37 PM

Excellent suggestion there, "eggroll." (Love the nick.) :D

Here's the bottom-line on this:
  • The NTP daemons will retrieve and calculate a time-value, and set it into the hardware clock. The hardware-clock can be set to GMT, or not. It's up to you, just make sure that all of your systems (esp. in a network) are consistent with one another. (Most applications do not query the hardware directly, anyway.)
  • The time-zone information file includes cutoff-dates for daylight time. Just be sure (as "eggroll" showed) that your files are up-to-date on this. This will ensure that "what time is it, here and now?" will be returned correctly.

michaelk 10-31-2013 07:05 PM

Actually NTP sets the system clock but the kernel if configured will keep the hardware clock updated every 11 minutes. I believe this is still an accurate statement...


http://www.ntp.org/ntpfaq/NTP-s-trbl-spec.htm


All times are GMT -5. The time now is 09:06 PM.