<?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: Unusual TIMEZONE problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017365#M129708</link>
    <description>Hello!&lt;BR /&gt;&lt;BR /&gt;In most of cases the scripts that run in startup don't know about the enviroment.&lt;BR /&gt;One came befor the other so you need to check this point in every script that you write for the startup process and not depend on the&lt;BR /&gt;enviroment that no exists.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
    <pubDate>Tue, 08 Jul 2003 19:27:31 GMT</pubDate>
    <dc:creator>Caesar_3</dc:creator>
    <dc:date>2003-07-08T19:27:31Z</dc:date>
    <item>
      <title>Unusual TIMEZONE problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017362#M129705</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have a script that runs only once from the /etc/inittab. This scripts runs a binary and the binary logs any messages with the date &amp;amp; time to a text file. Funny enough the date and times are in a different timezone.&lt;BR /&gt;&lt;BR /&gt;I have checked /etc/TIMEZONE and this is set correctly (to Eastern Australian time).&lt;BR /&gt;I have run "set_parms timezone" and set it to Eastern Australian and rebooted.&lt;BR /&gt;I log in as root and type "echo $TZ" and get the correct timezone. I type in date and get the correct date and time. I've checked /etc/profile and made sure the TZ is set correctly if /etc/TIMEZONE does not exist.&lt;BR /&gt;&lt;BR /&gt;Why does this binary that gets started via inittab log a timezone that looks like its in the US (ie. about 15 hours late). I am running HP-UX 11.00 on a HP9000 A Class.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;PA</description>
      <pubDate>Tue, 08 Jul 2003 04:01:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017362#M129705</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2003-07-08T04:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unusual TIMEZONE problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017363#M129706</link>
      <description>/etc/inittab is quite dumb, a bit like cron. It does not have the intelligence to know what a PATH is for example. What I suggest is  within the script, have it read the /etc/TIMEZONE file as part of variables. e.g. below.&lt;BR /&gt;&lt;BR /&gt;# Set TIMZONE&lt;BR /&gt;&lt;BR /&gt;if [ -r /etc/TIMEZONE ]&lt;BR /&gt;then&lt;BR /&gt;   . /etc/TIMEZONE&lt;BR /&gt;else&lt;BR /&gt;   TZ=EST-10EDT&lt;BR /&gt;   export TZ&lt;BR /&gt;fi</description>
      <pubDate>Tue, 08 Jul 2003 04:17:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017363#M129706</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-07-08T04:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unusual TIMEZONE problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017364#M129707</link>
      <description>Thank you Michael - it worked well.&lt;BR /&gt;&lt;BR /&gt;I placed the following line in the script file:&lt;BR /&gt;&lt;BR /&gt;. /etc/TIMEZONE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;PA</description>
      <pubDate>Tue, 08 Jul 2003 05:19:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017364#M129707</guid>
      <dc:creator>JUP</dc:creator>
      <dc:date>2003-07-08T05:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unusual TIMEZONE problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017365#M129708</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;In most of cases the scripts that run in startup don't know about the enviroment.&lt;BR /&gt;One came befor the other so you need to check this point in every script that you write for the startup process and not depend on the&lt;BR /&gt;enviroment that no exists.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Tue, 08 Jul 2003 19:27:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unusual-timezone-problem/m-p/3017365#M129708</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-08T19:27:31Z</dc:date>
    </item>
  </channel>
</rss>

