<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 11, 2017 at 2:48 PM, Kevin O'Gorman <span dir="ltr"><<a href="mailto:kogorman@gmail.com" target="_blank">kogorman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="gmail-">On Mon, Dec 11, 2017 at 1:07 PM, Drew Einhorn <span dir="ltr"><<a href="mailto:drew.einhorn@gmail.com" target="_blank">drew.einhorn@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">This is interesting, but I'm uncertain how to use it.  I found the list of servers in the registry.  I didn't put them there, but there are 5, and number 5 appears as the default.  It is <a href="http://time-b.nist.gov" target="_blank">time-b.nist.gov</a> which I sure hope is not unreliable.  However, I still get Windows showing the time off by 8 hours when it boots up, and I'm supposing that's because it is using the time in the BIOS DRAM, but I'm unsure because as near as I can tell the BIOS is set to local time; at least that's what I see when I'm in BIOS setup.  Frankly I'm all confused.<br><div class="gmail-m_-5505734249624413669gmail-HOEnZb"><div class="gmail-m_-5505734249624413669gmail-h5"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>It would be nice if Windows would use <a href="http://nist.gov" target="_blank">nist.gov</a> and apply the timezone, ignoring BIOS completely.<br></div><div><br></div></div>-- <br><div class="gmail-m_-5505734249624413669gmail-m_-1811608115321125402gmail_signature"><div dir="ltr"><div>Kevin O'Gorman<br></div>#define QUESTION ((bb) || (!bb))   /* Shakespeare */<br><br><div><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"></span></span><table cellspacing="0" cellpadding="0" border="0" width="448"><tbody><tr><td width="25"><img width="25" height="21"></td>
<td width="423"><span style="font-family:Verdana,Geneva,sans-serif;color:rgb(0,153,0);margin-left:5px;font-size:10px">Please consider the environment before printing this email.</span></td></tr></tbody></table><br></div></div></div>
</div></div>
</div></div></span><span class="gmail-"><font face="Calibri"><p dir="ltr">NTP is probably assuming system clock 
is UTC and correcting based on your time zone settings. This way ntp can
 assume all clocks are UTC and not have figure out all the relevant time
 zone corrections.</p>
<p dir="ltr">Does this make sense for your time zone? </p>
<p dir="ltr">Remote users can set their time zone environment variables 
for their local time zone. Things work out nicely on Unix or Linux based
 systems.</p>
<p dir="ltr">I don't know If there is a right way to configure Windows 
so it knows the hardware clock is UTC and the user time zone is 
different. If not, you have different issues depending on whether the 
hardware clock is UTC or local time. You may have to decide which issues
 are the bigger problem.</p>
<p dir="ltr">Windows may screw things up for spring and fall daylight 
savings adjustments, if Windows thinks the hardware is on local time 
when it's really on UTC. </p>
<p dir="ltr">If the latest updates are not installed, your systems may 
change to or from daylight savings on the wrong weekend. This can be an 
issue for all operating systems. </p>
<p dir="ltr">My daughter's alarm clock switched itself from daylight 
savings time to standard time on the wrong weekend this year. And, there
 is no way to update the rules for when to change.</p></font></span></blockquote><div><br></div><div>I reorganized this reply.  Please bottom-post on the list.</div><div><br></div>What you say sounds good, but it's a bit confusing to me.  Both Windows and Linux are NTP-capable, so when you write "NTP is ...." you don't say which one you mean.  But I take it you're writing about Linux NTP, and what you wrote agrees with what I think I knew about Linux.  I am not aware of a way to configure Windows to do what Linux does, but there's been some talk about making Linux do what Windows does instead.  I thought I had done it but it didn't work, and now I have a situation I don't understand at all.  Follow along with me....</div><div class="gmail_quote"><br></div><div class="gmail_quote">I'm running Linux and Linux thinks it's 2 PM on Dec 11 PST.  Which it is.</div><div class="gmail_quote">I reboot and enter BIOS setup.  BIOS thinks it's 2 PM on Dec 11, which it still is in this time zone but AFAIK BIOS has no concept of time zones.  Maybe my fix worked and linux is storing local time.  But wait, let's check.</div><div class="gmail_quote">I boot into Windows.  Windows thinks it's 6 AM on Dec 11, which is 8 hours off.  I didn't think Windows could do that, as I wrote above.</div><div class="gmail_quote">So I fix it.  Windows now thinks it's 2 PM on Dec 11.  I reboot.</div><div class="gmail_quote">In BIOS, the time is 22:xx (10 PM). off by 8 hours.  So Windows changed the BIOS time either when I changed the time or when it shut down, or both, and set it to UTC based on Windows' knowledge that we're in the UTC-8:00 zone.</div><div class="gmail_quote">Linux comes up and thinks it's 2 PM on Dec 11 PST.  Which it is.  But this is weird.  I was expecting it to accept the BIOS time of 10 PM as being local time.</div><div class="gmail_quote"><br></div><div class="gmail_quote">On a hunch, I ran ntpdate, and here's a new piece of the puzzle:</div><div class="gmail_quote">11 Dec 14:37:01 ntpdate[6074]: no servers can be used, exiting</div><div class="gmail_quote"><br></div><div class="gmail_quote">So now I think I should be configuring NTP.</div><div class="gmail_quote"><br></div><div class="gmail_quote">/etc/ntp.conf contains a few lines that look like NTP servers.  They must have come with the distro:</div><div class="gmail_quote"># Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board<br># on 2011-02-08 (LP: #104525). See <a href="http://www.pool.ntp.org/join.html" target="_blank">http://www.pool.ntp.org/join.<wbr>html</a> for<br># more information.<br>pool <a href="http://0.ubuntu.pool.ntp.org" target="_blank">0.ubuntu.pool.ntp.org</a> iburst<br>pool <a href="http://1.ubuntu.pool.ntp.org" target="_blank">1.ubuntu.pool.ntp.org</a> iburst<br>pool <a href="http://2.ubuntu.pool.ntp.org" target="_blank">2.ubuntu.pool.ntp.org</a> iburst<br>pool <a href="http://3.ubuntu.pool.ntp.org" target="_blank">3.ubuntu.pool.ntp.org</a> iburst<br><br># Use Ubuntu's ntp server as a fallback.<br>pool <a href="http://ntp.ubuntu.com" target="_blank">ntp.ubuntu.com</a><br><br></div><div class="gmail_quote">So why are no servers usable?  Is it possible my router is blocking NTP?  Is it possible the standard config file is bad?  This is Ubuntu 16.04.3.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Clues, anyone?<br></div><br><span class="gmail-"></span><br></div></div></blockquote></div></div><div class="gmail_extra">Hmm.  It's not quite as bad as i though, but it's still every bit as confusing.  Reaching back in my memory I came up with:</div><div class="gmail_extra" style="margin-left:40px"><br></div><div class="gmail_extra" style="margin-left:40px"><span style="font-family:monospace,monospace">$ ntpq -p<br>     remote           refid      st t when poll reach   delay   offset  jitter<br>==============================================================================<br> 0.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000<br> 1.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000</span></div><div class="gmail_extra" style="margin-left:40px"><span style="font-family:monospace,monospace"> </span><span style="font-family:monospace,monospace">2.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000<br></span><span style="font-family:monospace,monospace"></span><span style="font-family:monospace,monospace"> 3.ubuntu.pool.n .POOL.          16 p    -   64    0    0.000    0.000   0.000<br> <a href="http://ntp.ubuntu.com">ntp.ubuntu.com</a>  .POOL.          16 p    -   64    0    0.000    0.000   0.000<br>-104.131.155.175 171.66.97.126    2 u  693 1024  377   19.169   -0.267   3.126<br>*<a href="http://ntp.your.org">ntp.your.org</a>    .CDMA.           1 u  118 1024  377   73.945    1.636   2.191<br>+<a href="http://chl.la">chl.la</a>          127.67.113.92    2 u 1336 1024  376   22.897    3.010   2.547<br>+<a href="http://time.tritn.com">time.tritn.com</a>  198.60.22.240    3 u  158 1024  377   21.207    5.454   2.769<br>-<a href="http://pacific.latt.ne">pacific.latt.ne</a> 199.233.236.226  3 u  923 1024  377   11.997    1.665   3.041<br>$</span></div><div class="gmail_extra" style="margin-left:40px"><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_extra">So NTP is working okay (although the ubuntu pool may not be,) but ntpdate is not.  I wonder why?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><div>Kevin O'Gorman<br></div>#define QUESTION ((bb) || (!bb))   /* Shakespeare */<br><br><div><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"><span style="line-height:normal;font-variant:normal;font-size:10pt;font-style:normal;font-weight:normal"></span></span><table cellspacing="0" cellpadding="0" border="0" width="448"><tbody><tr><td width="25"><img src="cid:XVHDKDFDBURW.IMAGE_60.gif" width="25" height="21"></td>
<td width="423"><span style="font-family:Verdana,Geneva,sans-serif;color:rgb(0,153,0);margin-left:5px;font-size:10px">Please consider the environment before printing this email.</span></td></tr></tbody></table><br></div></div></div>
</div></div>