<?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: simulated time change failed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868269#M398097</link>
    <description>thx to all for the info&lt;BR /&gt;&lt;BR /&gt;thx in particular to jeff, the problem/mistake i made was to set the time to 1:59am instead of 0:59am ...even though the clock rolls back to 1:00am after reaching 2:00am the "trigger" is for the system to actually pass 1:00am first as referenced in the tztab file&lt;BR /&gt;&lt;BR /&gt;there was no need to logout and log back in since the TZ value was not being modified at all</description>
    <pubDate>Tue, 02 Nov 2004 17:18:16 GMT</pubDate>
    <dc:creator>Marc Ahrendt</dc:creator>
    <dc:date>2004-11-02T17:18:16Z</dc:date>
    <item>
      <title>simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868264#M398092</link>
      <description>my server properly set the "time" back one hour as expected (using TZ=PST8PDT) this past sunday&lt;BR /&gt;&lt;BR /&gt;my question is that why couldn't i simulate this time change on 10/29/04 ...below is what i did and it confused me&lt;BR /&gt;&lt;BR /&gt;date (told me that it was 3pm on 10/29/04)&lt;BR /&gt;date 10310159 (moved time up to simulate)&lt;BR /&gt;date (told me that it was 1:59am on 10/31/04)&lt;BR /&gt;(waited ~2 minutes)&lt;BR /&gt;date (told me that it was 2:01am instead of what i expected to be 1:01am!?!)&lt;BR /&gt;&lt;BR /&gt;i know the system counts seconds since 01/01/1970 at 00:00am and that date is depenedt on TZ, but i am not sure why i couldn't simulate the weekend fall back ahead of time</description>
      <pubDate>Mon, 01 Nov 2004 16:05:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868264#M398092</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-11-01T16:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868265#M398093</link>
      <description>Are you running ntp, network time protocol? That could be interfering with your results.&lt;BR /&gt;&lt;BR /&gt;The results of the date command should if accepted without error message be reflected immediatly unless some other factor changes it back.&lt;BR /&gt;&lt;BR /&gt;/var/adm/syslog/syslog.log may have key messages.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 01 Nov 2004 16:14:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868265#M398093</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-11-01T16:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868266#M398094</link>
      <description>steve, i forgot to mention that i disabled NTP during my testing&lt;BR /&gt;&lt;BR /&gt;also i had no errors in syslog.log and no errors when running the date commands!?!</description>
      <pubDate>Mon, 01 Nov 2004 16:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868266#M398094</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-11-01T16:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868267#M398095</link>
      <description>Hi Marc,&lt;BR /&gt;&lt;BR /&gt;Take a look at the tztab man page &amp;amp; then at the /usr/lib/tztab file.&lt;BR /&gt;You'll see that for PST8PDT entry the following line is used&lt;BR /&gt;0 1 25-31 10 1975-2038 0 PST8&lt;BR /&gt;The key is the last field (#7) it defines what happens - i.e. the shift from deviation from UTC. In your case from 7 to 8 hours difference.&lt;BR /&gt;Also note field #2 - that's the hour that the change "starts". This means you should have set the time to 00:59 &amp;amp; then waited to see what the *next* minute after 01:59 displayed. It would have then been 01:00.&lt;BR /&gt;Also it may have been prudent to logout &amp;amp; back in to insure you pick up the current TZ value - just to be safe.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 01 Nov 2004 17:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868267#M398095</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-11-01T17:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868268#M398096</link>
      <description>And to amplify a bit about TZ. There are no errors playing with TZ (like syslog errors). TZ is just a translator code. You don't need to disable NTP since it just keeps UTC (the time that HP-UX keeps) synced. What TZ is doing is providing date (and any other program that calls ctime() and relatives) with a string to process based on the rules for tztab. So you can create your own private timezone, even create your own Daylight Saving switch point (perhaps 13 minutes after midnight...). &lt;BR /&gt; &lt;BR /&gt;In all cases, what happens in your login session affects nothing else on the system. Each user inherits TZ from their profile. Programs that start at bootup get TZ set from /etc/TIMEZONE.&lt;BR /&gt; &lt;BR /&gt;HP-UX can't be bothered with all the politics surrounding timezones (which have nothing to do with astronomical time units) so TZ and tztab were designed to handle almost anything the politicians put together.</description>
      <pubDate>Mon, 01 Nov 2004 23:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868268#M398096</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-11-01T23:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: simulated time change failed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868269#M398097</link>
      <description>thx to all for the info&lt;BR /&gt;&lt;BR /&gt;thx in particular to jeff, the problem/mistake i made was to set the time to 1:59am instead of 0:59am ...even though the clock rolls back to 1:00am after reaching 2:00am the "trigger" is for the system to actually pass 1:00am first as referenced in the tztab file&lt;BR /&gt;&lt;BR /&gt;there was no need to logout and log back in since the TZ value was not being modified at all</description>
      <pubDate>Tue, 02 Nov 2004 17:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simulated-time-change-failed/m-p/4868269#M398097</guid>
      <dc:creator>Marc Ahrendt</dc:creator>
      <dc:date>2004-11-02T17:18:16Z</dc:date>
    </item>
  </channel>
</rss>

