<?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: Time and Timezone in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710319#M384902</link>
    <description>&amp;gt; So I have to check and configure xntpd correctly, right?&lt;BR /&gt;&lt;BR /&gt;Yes, that would be a good thing to do. But xntpd is good in making small corrections (up to a few minutes), but you're likely to need a correction of +1 whole hour. It's faster to make a big correction using date/ntpdate, then configure and start up xntpd to keep it in sync with high precision.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dennis&amp;gt; How do we know it is slow? What does "date -u" show? Because it was correct during the summer?&lt;BR /&gt;&lt;BR /&gt;The original post includes the current TZ setting, and the fact that the local time is now exactly 1h slow. By looking at the HP-UX tztab definition for WST-5WSTDST (a timezone with its own specific DST definition in HP-UX tztab) I can see the latest DST transition for it has happened on the last Sunday of October. By doing a "reverse transform", it is possible to figure out what the UTC time must be.&lt;BR /&gt;&lt;BR /&gt;It is conceivable that this has been noticed only after a week has passed, since the poster says they don't use DST in their country... and so are unlikely to pay any special attention to system clocks at DST transition times.&lt;BR /&gt;&lt;BR /&gt;Of course, it's possible that rustam might have custom TZ settings for his account only, but I find it unlikely since most people seem to be totally unaware of this feature of Unix systems. &lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Mon, 08 Nov 2010 13:24:37 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-11-08T13:24:37Z</dc:date>
    <item>
      <title>Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710310#M384893</link>
      <description>Hi all,&lt;BR /&gt;I dont know why but time of my servers change to current_time - 1 hour. I guess it's coz of time zone. Our country doesnt change time to winter and summer time zone and it must be GMT + 5.00. Now command date shows me&lt;BR /&gt;$ date &lt;BR /&gt;Mon Nov  8 09:58:44 WST 2010&lt;BR /&gt;and in file /etc/TIMEZONE is value&lt;BR /&gt;# less TIMEZONE&lt;BR /&gt;TZ=WST-5WSTDST&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;Time must be 10:58:44.&lt;BR /&gt;&lt;BR /&gt;So how can change time and timezone correctly without rebooting? which way is better command date or set_parms?&lt;BR /&gt;&lt;BR /&gt;Can i use windows NTP server to my HP-UX version 11.3?&lt;BR /&gt;&lt;BR /&gt;thanks and regards,&lt;BR /&gt;Rustam</description>
      <pubDate>Mon, 08 Nov 2010 05:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710310#M384893</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-11-08T05:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710311#M384894</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i would recommend you to change the time with the reboot of the system.&lt;BR /&gt;&lt;BR /&gt;yes you can run NTP server on the WIndows OS, its doesn't matter on the OS ( unix / linux / Windows ... )&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Mon, 08 Nov 2010 06:07:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710311#M384894</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-11-08T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710312#M384895</link>
      <description>Are you using NTP services?  If so, check your NTP, whether it is in sync or not.&lt;BR /&gt;&lt;BR /&gt;#ntpq -p</description>
      <pubDate>Mon, 08 Nov 2010 06:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710312#M384895</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-11-08T06:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710313#M384896</link>
      <description>Hi mikap and Shibin,&lt;BR /&gt;&lt;BR /&gt;Mikap, so u suggest to use set_parms time? How about TIMEZONE?&lt;BR /&gt;My NTP Server is running on Windows Server 2003 where is domain structure exist. Is it ok for HP-UX?&lt;BR /&gt;Shibin, this command  #ntpq â  p  shows me this:&lt;BR /&gt;# ntpq -p&lt;BR /&gt;ntpq: read: Can't assign requested address&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2010 06:36:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710313#M384896</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-11-08T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710314#M384897</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;edit /etc/default/tz&lt;BR /&gt;&lt;BR /&gt;sms:/etc/default#strings tz&lt;BR /&gt;MET-1METDST&lt;BR /&gt;&lt;BR /&gt;for example my time zone definition.&lt;BR /&gt;&lt;BR /&gt;==&amp;gt; check the NTP config&lt;BR /&gt;&lt;BR /&gt;strings /etc/ntp.conf&lt;BR /&gt;&lt;BR /&gt;server IP_OF_YOUR_NTP_server(1-x)&lt;BR /&gt;&lt;BR /&gt;grep -i xntp /etc/rc.config.d/netdaemons &lt;BR /&gt;&lt;BR /&gt;# xntp configuration.  See xntpd(1m) #&lt;BR /&gt;# XNTPD:        Set to 1 to start xntpd (0 to not run xntpd)&lt;BR /&gt;# XNTPD_ARGS:  command line arguments for xntpd&lt;BR /&gt;export XNTPD=1&lt;BR /&gt;export XNTPD_ARGS=&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Mon, 08 Nov 2010 06:43:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710314#M384897</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-11-08T06:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710315#M384898</link>
      <description>If your country doesn't use Daylight Saving Time (= summer/winter time), then your TZ variable should be set to WST-5, not WST-5WSTDST.&lt;BR /&gt;&lt;BR /&gt;It's recommended to reboot the system after changing /etc/TIMEZONE, but if you cannot do that, you should at least restart all daemons and other long-running processes that are using time information.&lt;BR /&gt;&lt;BR /&gt;Since the WST-5WSTDST timezone is now on winter time, changing the TZ to remove the DST identifier will have no visible effect now. If a reboot can be scheduled at some time between now and the last week of March 2011, you'll probably be fine.&lt;BR /&gt;&lt;BR /&gt;The next step is to set your clock to correct time. It is now 1 hour slow, so you must change the clock forward. This is fortunate, because turning the clock backwards is generally not safe when applications are running. &lt;BR /&gt;&lt;BR /&gt;To make such a major change to the system clock, ntpd is not ideal. You might want to use either "date" or "ntpdate" commands to set the system clock.&lt;BR /&gt;&lt;BR /&gt;If you want to test the accessibility of your NTP server, run "ntpdate -d &lt;YOUR ntp="" server=""&gt;". It will display some diagnostic messages, and indicate how much it *would* change the clock if it were run for real. But when using option "-d", it won't actually change anything.&lt;BR /&gt;&lt;BR /&gt;If your Windows NTP server seems to work and has a connection to reliable timesources, you can use it. &lt;BR /&gt;&lt;BR /&gt;# ntpq -p&lt;BR /&gt;ntpq: read: Can't assign requested address&lt;BR /&gt;&lt;BR /&gt;This only means xntpd is not running on your system. (Note: when xntpd is running, you cannot use ntpdate - they both would be trying to use the same UDP port, creating a conflict. But when xntpd is properly configured and running, you usually won't need ntpdate.)&lt;BR /&gt;&lt;BR /&gt;MK&lt;/YOUR&gt;</description>
      <pubDate>Mon, 08 Nov 2010 07:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710315#M384898</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-11-08T07:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710316#M384899</link>
      <description>Matti has explained it well.&lt;BR /&gt;&lt;BR /&gt;Were you using NTP services in UNIX ?</description>
      <pubDate>Mon, 08 Nov 2010 07:35:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710316#M384899</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-11-08T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710317#M384900</link>
      <description>Mikap,&lt;BR /&gt;In this file /etc/ntp.conf I couldnâ  t find string &lt;BR /&gt;server IP_OF_YOUR_NTP_server(1-x)&lt;BR /&gt;Should I add new string?&lt;BR /&gt;Server IP_OF_MY_NTP_SERVER(1-x)&lt;BR /&gt;grep -i xntp /etc/rc.config.d/netdaemons shows me&lt;BR /&gt;# xntp configuration.  See xntpd(1m) #&lt;BR /&gt;# XNTPD:        Set to 1 to start xntpd (0 to not run xntpd)&lt;BR /&gt;# XNTPD_ARGS:  command line arguments for xntpd&lt;BR /&gt;export XNTPD=0&lt;BR /&gt;export XNTPD_ARGS=&lt;BR /&gt;&lt;BR /&gt;MK,&lt;BR /&gt;I changed time with set_parm date_time command&lt;BR /&gt;Should I just open /etc/TIMEZONE file and edit valueTZ=WST-5WSTDST export TZ to TZ=WST-5 export TZ  with any editor?&lt;BR /&gt;&amp;gt;&amp;gt; This only means xntpd is not running on your system. (Note: when xntpd is running, you cannot use ntpdate - they both would be trying to use the same UDP port, creating a conflict. But when xntpd is properly configured and running, you usually won't need ntpdate.)&lt;BR /&gt;&lt;BR /&gt;So I have to check and configure xntpd correctly, right?&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Nov 2010 10:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710317#M384900</guid>
      <dc:creator>rustam_2</dc:creator>
      <dc:date>2010-11-08T10:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710318#M384901</link>
      <description>&amp;gt;but time of my servers change to current_time - 1 hour. I guess it's because of time zone.&lt;BR /&gt;&lt;BR /&gt;Yes, that's when it changes in the US.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Our country doesn't change time to winter and summer time zone and it must be GMT + 5.&lt;BR /&gt;&lt;BR /&gt;As MK said, then you must use a timezone like: WST-5&lt;BR /&gt;(Otherwise you follow the US rules.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;MK: The next step is to set your clock to correct time. It is now 1 hour slow, so you must change the clock forward.&lt;BR /&gt;&lt;BR /&gt;How do we know it is slow?  What does "date -u" show?  Because it was correct during the summer?</description>
      <pubDate>Mon, 08 Nov 2010 10:30:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710318#M384901</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-08T10:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Time and Timezone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710319#M384902</link>
      <description>&amp;gt; So I have to check and configure xntpd correctly, right?&lt;BR /&gt;&lt;BR /&gt;Yes, that would be a good thing to do. But xntpd is good in making small corrections (up to a few minutes), but you're likely to need a correction of +1 whole hour. It's faster to make a big correction using date/ntpdate, then configure and start up xntpd to keep it in sync with high precision.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Dennis&amp;gt; How do we know it is slow? What does "date -u" show? Because it was correct during the summer?&lt;BR /&gt;&lt;BR /&gt;The original post includes the current TZ setting, and the fact that the local time is now exactly 1h slow. By looking at the HP-UX tztab definition for WST-5WSTDST (a timezone with its own specific DST definition in HP-UX tztab) I can see the latest DST transition for it has happened on the last Sunday of October. By doing a "reverse transform", it is possible to figure out what the UTC time must be.&lt;BR /&gt;&lt;BR /&gt;It is conceivable that this has been noticed only after a week has passed, since the poster says they don't use DST in their country... and so are unlikely to pay any special attention to system clocks at DST transition times.&lt;BR /&gt;&lt;BR /&gt;Of course, it's possible that rustam might have custom TZ settings for his account only, but I find it unlikely since most people seem to be totally unaware of this feature of Unix systems. &lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Mon, 08 Nov 2010 13:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-and-timezone/m-p/4710319#M384902</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-11-08T13:24:37Z</dc:date>
    </item>
  </channel>
</rss>

