<?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: Brazil timezone issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551725#M840418</link>
    <description>TZ environment variable should be set to BEST3BEDT. date command should show difference of 3 hours between UTC and your local time.&lt;BR /&gt;&lt;BR /&gt;Format of lines in /usr/lib/tztab is&lt;BR /&gt;&lt;BR /&gt;minute hour day_of_the_month month_of_the_year year day_of_the_week tzname_offset&lt;BR /&gt;&lt;BR /&gt;minute: 0-59&lt;BR /&gt;hour: 0-23&lt;BR /&gt;day_of_the_month: 1-31&lt;BR /&gt;month_of_the_year: 1-12&lt;BR /&gt;year: 1970-2038&lt;BR /&gt;day_of_the_week: 0-6 (0 is Sunday)&lt;BR /&gt;tzname: BEST&lt;BR /&gt;offset: 3 hours behind UTC&lt;BR /&gt;&lt;BR /&gt;According to your tztab, last change happened on Sunday February 20 2005, when difference between UTC and your local time became 3 hours.&lt;BR /&gt;&lt;BR /&gt;Please note that kernel always keep its internal time in UTC. TZ variable only affects programs such as date etc.</description>
    <pubDate>Thu, 26 May 2005 02:05:45 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-05-26T02:05:45Z</dc:date>
    <item>
      <title>Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551722#M840415</link>
      <description>I have a server in Brazil that I set the tztab on 3/01/05 so it is no longer in daylight savings (I was kinda late!). (see below end of /usr/lib/tztab) However, the system has switched from "BEST" time zone to "BEDT" so it is displaying time 2 hours behind UTC which is incorrect as it should be 3 hours behind UTC.  This appears to have happened the first week on April.  Can anyone explain why my system went into daylight savings time?  (Note I do not have a new line at the end of the last line in the file not sure if that matters?)&lt;BR /&gt;&lt;BR /&gt;BEST3BEDT&lt;BR /&gt;0 0 15-21 2  2003 0 BEST3&lt;BR /&gt;0 0 18-24 10 2003 0 BEDT2&lt;BR /&gt;0 0 14-20 2  2004 0 BEST3&lt;BR /&gt;0 0 1-2   11 2004 2 BEDT2&lt;BR /&gt;0 0 20-21 2  2005 0 BEST3</description>
      <pubDate>Wed, 25 May 2005 11:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551722#M840415</guid>
      <dc:creator>Tony Kuehn</dc:creator>
      <dc:date>2005-05-25T11:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551723#M840416</link>
      <description>In the absence of an ntp network time protocol connection your server should switch between times on a date known for your time zone when the OS was released.&lt;BR /&gt;&lt;BR /&gt;The best way around that is to set the time zone and enable ntp to get actual time from a time server.&lt;BR /&gt;&lt;BR /&gt;Another way to go is to set your systsem time to Greenwich mean time, if the users won't object.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ntp.org" target="_blank"&gt;http://www.ntp.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 25 May 2005 12:22:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551723#M840416</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-25T12:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551724#M840417</link>
      <description>Stephen,&lt;BR /&gt;If I do a date -u I get the correct UTC time and we are using NTP.  So I "beleive" that the time on the server is correct, however, it is displayed incorrectly because the timezone environment varialbe is set to daylight savings (BEDT).  I am wondering why the timezone variable would have switched (without a reboot) and when the tztab config (above) is not configured to switch.  Maybe I am confused about the tztab config? &lt;BR /&gt;Please advise, thanks!</description>
      <pubDate>Wed, 25 May 2005 12:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551724#M840417</guid>
      <dc:creator>Tony Kuehn</dc:creator>
      <dc:date>2005-05-25T12:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551725#M840418</link>
      <description>TZ environment variable should be set to BEST3BEDT. date command should show difference of 3 hours between UTC and your local time.&lt;BR /&gt;&lt;BR /&gt;Format of lines in /usr/lib/tztab is&lt;BR /&gt;&lt;BR /&gt;minute hour day_of_the_month month_of_the_year year day_of_the_week tzname_offset&lt;BR /&gt;&lt;BR /&gt;minute: 0-59&lt;BR /&gt;hour: 0-23&lt;BR /&gt;day_of_the_month: 1-31&lt;BR /&gt;month_of_the_year: 1-12&lt;BR /&gt;year: 1970-2038&lt;BR /&gt;day_of_the_week: 0-6 (0 is Sunday)&lt;BR /&gt;tzname: BEST&lt;BR /&gt;offset: 3 hours behind UTC&lt;BR /&gt;&lt;BR /&gt;According to your tztab, last change happened on Sunday February 20 2005, when difference between UTC and your local time became 3 hours.&lt;BR /&gt;&lt;BR /&gt;Please note that kernel always keep its internal time in UTC. TZ variable only affects programs such as date etc.</description>
      <pubDate>Thu, 26 May 2005 02:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551725#M840418</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-26T02:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551726#M840419</link>
      <description>Some timekeeping details:&lt;BR /&gt;&lt;BR /&gt;The system is never in some timezone, it should  always run in 'epoc': number of seconds sinds 00:00, 1st january 1970. It is only the representation (the `date` command for example) that calculates to your current timezone. From `man date`: it is the ${TZ} environment variable that sets the timezone. See `man tztab` and `man environ` for details on how to control this.&lt;BR /&gt;&lt;BR /&gt;The ntp-protocol and the ntp-deamon are there to keep the internal time (epoc) in sync with the rest of the world. Use `sam` to setup ntp. If you donnot have an ntp-server around and your internet-provider had none either, you can use 'pool.ntp.org', see &lt;A href="http://www.pool.ntp.org/#use" target="_blank"&gt;http://www.pool.ntp.org/#use&lt;/A&gt; for details.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 07:08:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551726#M840419</guid>
      <dc:creator>C. Beerse_1</dc:creator>
      <dc:date>2005-05-26T07:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551727#M840420</link>
      <description>Ermin, &lt;BR /&gt;The TZ variable is set to "BEST3BEDT".  That is why I am so confused.  The system continues to display the date/time as BEDT and 2 hour behind UTC.  I have tried making changes to the tztab, however, have been unsuccessful to make it to display time in "standard time" for Eastern Brazil (3 hours behind UTC).  Very strange.  Well for now I have done a "set_parms timezone" and walked through the menu's so the time is now correctly displayed as 3 hours behind UTC, however, the TZ variable is now "SAT".  I don't think the actual "string" in the TZ variable will affect anything as long as the time calculations "behind it" are correctly modifying the displayed time.&lt;BR /&gt;Thanks to all for your help!</description>
      <pubDate>Thu, 26 May 2005 07:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551727#M840420</guid>
      <dc:creator>Tony Kuehn</dc:creator>
      <dc:date>2005-05-26T07:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Brazil timezone issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551728#M840421</link>
      <description>I was curious as to why it didn't work so I've tried it on my system.&lt;BR /&gt;&lt;BR /&gt;BEST3BEDT&lt;BR /&gt;0 0 15-21 2 2003 0 BEST3&lt;BR /&gt;0 0 18-24 10 2003 0 BEDT2&lt;BR /&gt;0 0 14-20 2 2004 0 BEST3&lt;BR /&gt;0 0 1-2 11 2004 2 BEDT2&lt;BR /&gt;0 0 20-21 2 2005 0 BEST3&lt;BR /&gt;&lt;BR /&gt;$ TZ=BEST3BEDT date; date -u&lt;BR /&gt;Fri May 27 02:41:56 BEDT 2005&lt;BR /&gt;Fri May 27 04:41:56 UTC 2005&lt;BR /&gt;&lt;BR /&gt;When I changed the last two lines to include the range of 7 days (1-2 -&amp;gt; 1-7 and 20-21 -&amp;gt; 20-26) then it shows difference of 3 hours, which is correct.&lt;BR /&gt;&lt;BR /&gt;0 0 1-7 11 2004 2 BEDT2&lt;BR /&gt;0 0 20-26 2 2005 0 BEST3&lt;BR /&gt;&lt;BR /&gt;$ TZ=BEST3BEDT date; date -u&lt;BR /&gt;Fri May 27 01:48:16 BEST 2005&lt;BR /&gt;Fri May 27 04:48:16 UTC 2005&lt;BR /&gt;&lt;BR /&gt;So I think it has a problem when day of the month range includes anything but 7 days.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 23:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/brazil-timezone-issue/m-p/3551728#M840421</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-05-26T23:52:00Z</dc:date>
    </item>
  </channel>
</rss>

