<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: strange time issue in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448650#M37202</link>
    <description>Hmm... the error is almost exactly 10 hours, and your desired timezone is "GMT+5".&lt;BR /&gt;&lt;BR /&gt;In the Unix timezone specifiers, the sign is often opposite of what you'd think it should be. This comes from the POSIX standard definition of the TZ environment variable: the signed number in the timezone specifier is the value that must be added to the _local_ time to get _GMT/UTC_ time. &lt;BR /&gt;&lt;BR /&gt;This allowed omitting the sign of the number for North America, as computer memory was expensive back in the 1980's and most of the computers were built and used there.&lt;BR /&gt;&lt;BR /&gt;If you set TZ=GMT+5, that means "add +5 hours to local time to get UTC"... so that actually means "the local time is of timezone GMT-5". &lt;BR /&gt;Run "date -u; date" and compare the times to see if this is your problem.&lt;BR /&gt;&lt;BR /&gt;This confusion was probably one of the reasons why Linux and many other Unix-style systems have now moved to a new "Continent/Capital" style timezone specifications.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Mon, 29 Jun 2009 10:57:03 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-06-29T10:57:03Z</dc:date>
    <item>
      <title>strange time issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448647#M37199</link>
      <description>OS: SUSE Linux Enterprise 9 SP 3&lt;BR /&gt;&lt;BR /&gt;I have almost 12 SLES9 SP3 Servers, that are running fine, and getting their time from an NTP server properly.&lt;BR /&gt;&lt;BR /&gt;the machine in question is also a SLES9 SP3. This machine has a very strange problem. I did manually  adjust the timezone/date/time, and then made this machine the ntp client, then start the ntp service(or ntpdate ip.of.ntp.server), now the time went bad.. i.e its almost 10 Hours back.&lt;BR /&gt;&lt;BR /&gt;after manully adjusting the date/time/timezone&lt;BR /&gt;# date&lt;BR /&gt;Thu Jun 25 21:43:44 GMT+5&lt;BR /&gt;&lt;BR /&gt;then&lt;BR /&gt;# rcxntp start&lt;BR /&gt;Thu Jun 25 11:38:19 GMT+5&lt;BR /&gt;&lt;BR /&gt;and these are the messages from /var/log/messages&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpdate[12018]: step time server 10.0.0.79 offset -35966.778569 sec&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: ntpd 4.2.0a@1.1213-r Tue Nov  8 17:39:08 UTC 2005 (1)&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: precision = 1.000 usec&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: Listening on interface wildcard, 0.0.0.0#123&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: Listening on interface wildcard, ::#123&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: Listening on interface lo, 127.0.0.1#123&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: Listening on interface eth0, 10.55.1.51#123&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: kernel time sync status 0040&lt;BR /&gt;Jun 25 11:38:19 fsdumber03 ntpd[12023]: frequency initialized 124.648 PPM from /var/lib/ntp/drift/ntp.drift&lt;BR /&gt;&lt;BR /&gt;# cat /var/lib/ntp/drift/ntp.drift&lt;BR /&gt;124.648&lt;BR /&gt;&lt;BR /&gt;all other 12 machines(with similar OS/ntp server) doesn't  has such issue/problem.&lt;BR /&gt;&lt;BR /&gt;all machines(including the machine in question) has 'Hardware Clock set to 'UTC').&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Jun 2009 13:22:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448647#M37199</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2009-06-28T13:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: strange time issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448648#M37200</link>
      <description>So what does&lt;BR /&gt;&lt;BR /&gt;ntpdate -q &lt;YOUR_NTP_SERVER&gt; &lt;BR /&gt;&lt;BR /&gt;give you? Does it match across servers? It looks like it isn't talking to the NTP server at all.&lt;BR /&gt;&lt;BR /&gt;Also take a look with &lt;BR /&gt;&lt;BR /&gt;ntpq -p&lt;BR /&gt;&lt;BR /&gt;This will show all of your peers....&lt;BR /&gt; # ntpq -p&lt;BR /&gt;     remote           refid      st t when poll reach   delay   offset  jitter&lt;BR /&gt;==============================================================================&lt;BR /&gt; LOCAL(0)        .LOCL.          10 l   15   64  377    0.000    0.000   0.001&lt;BR /&gt;*88-96-233-89.ds .PPS.            1 u  601 1024  377   75.009   -2.068   3.712&lt;BR /&gt; 132.146.236.132 .STEP.          16 u    - 1024    0    0.000    0.000   0.000&lt;BR /&gt;&lt;BR /&gt;If the '*' is next to LOCAL, then it means its not taking the time from the peers but from the system itself.&lt;BR /&gt;&lt;BR /&gt;Col&lt;/YOUR_NTP_SERVER&gt;</description>
      <pubDate>Sun, 28 Jun 2009 16:34:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448648#M37200</guid>
      <dc:creator>Colin Topliss</dc:creator>
      <dc:date>2009-06-28T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: strange time issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448649#M37201</link>
      <description>Shalom Maaz,&lt;BR /&gt;&lt;BR /&gt;In addition to: ntpdate -q &lt;YOUR_NTP_SERVER&gt; &lt;BR /&gt;&lt;BR /&gt;It should be understood that ntp will not adjust servers off more than a few hours.&lt;BR /&gt;&lt;BR /&gt;A server that is disconnected or not talking to its ntp server will if its internal clock is running very slow or fast, get so far out of adjustment that a manual update is required to get it back to adjustment. that or the ntpdate command.&lt;BR /&gt;&lt;BR /&gt;If the ntpdate  command fails then there is a problem with the ntp server or connecting to it.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/YOUR_NTP_SERVER&gt;</description>
      <pubDate>Sun, 28 Jun 2009 23:38:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448649#M37201</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-06-28T23:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: strange time issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448650#M37202</link>
      <description>Hmm... the error is almost exactly 10 hours, and your desired timezone is "GMT+5".&lt;BR /&gt;&lt;BR /&gt;In the Unix timezone specifiers, the sign is often opposite of what you'd think it should be. This comes from the POSIX standard definition of the TZ environment variable: the signed number in the timezone specifier is the value that must be added to the _local_ time to get _GMT/UTC_ time. &lt;BR /&gt;&lt;BR /&gt;This allowed omitting the sign of the number for North America, as computer memory was expensive back in the 1980's and most of the computers were built and used there.&lt;BR /&gt;&lt;BR /&gt;If you set TZ=GMT+5, that means "add +5 hours to local time to get UTC"... so that actually means "the local time is of timezone GMT-5". &lt;BR /&gt;Run "date -u; date" and compare the times to see if this is your problem.&lt;BR /&gt;&lt;BR /&gt;This confusion was probably one of the reasons why Linux and many other Unix-style systems have now moved to a new "Continent/Capital" style timezone specifications.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 29 Jun 2009 10:57:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-time-issue/m-p/4448650#M37202</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-06-29T10:57:03Z</dc:date>
    </item>
  </channel>
</rss>

