<?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: Timezone 'problems' in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984448#M754912</link>
    <description>It looks as though this might be historical, as there was no support for time zones or DST in Oracle before 9i.&lt;BR /&gt;&lt;BR /&gt;From 9i onwards, you can use the timestamp data type to store date-and-time information with associated time zone information. There's a brief introduction to the subject at &lt;A href="http://www.devx.com/dbzone/Article/30501." target="_blank"&gt;http://www.devx.com/dbzone/Article/30501.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is, of course, a caveat: if you use this functionality, you become dependent on Oracle patches for changes to the DST rules (such as the recent US DST change). Also, this will mean a change to the application tables, which may involve reworking some of your application...&lt;BR /&gt;</description>
    <pubDate>Fri, 20 Apr 2007 03:12:38 GMT</pubDate>
    <dc:creator>Andrew C Fieldsend</dc:creator>
    <dc:date>2007-04-20T03:12:38Z</dc:date>
    <item>
      <title>Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984447#M754911</link>
      <description>We have Oracle 9i. Some tables hold their information in GMT. After the change in March to BST, we need to change the date column in these tables to -1 hour, so that it reflects GMT. &lt;BR /&gt;A table (gmt_offset) was set up that has the value of ZERO during the winter months and 1 from March to October, which needs to be manually updated when the clocks go forward. Then this procedure converts things to GMT : &lt;BR /&gt;CREATE OR REPLACE PROCEDURE "UPDATE_TO_GMT" AS&lt;BR /&gt;&lt;BR /&gt;BEGIN&lt;BR /&gt;--HARDCODED|0 SHOULD BE VALUE OF GMT_OFFSET TABLE&lt;BR /&gt;  UPDATE SCAN_BUFFER_TABLE SET TIMEDATE = (TIMEDATE - (0 *(1/24)));&lt;BR /&gt;  UPDATE TIP_BUFFER_TABLE  SET TIMEDATE = (TIMEDATE - (0 *(1/24)));&lt;BR /&gt;  UPDATE BSM_BUFFER_TABLE  SET TIMEDATE = (TIMEDATE - (0 *(1/24)));&lt;BR /&gt;  COMMIT;&lt;BR /&gt;END;&lt;BR /&gt;/&lt;BR /&gt;Unfortunately this manual change of the gmt_offset table is not satisfactory(so the new boss says!). We changed the procedure to the one attached but the result we get for the NZONES variable is '+00:00' and not '+01:00'. Can someone please suggest a better way of doing this? We do not have that knowledge to do it in any other way. Perhaps the person that designed the DB has done it this way because there was no other solution. Was he right or just wrong/lazy??</description>
      <pubDate>Thu, 19 Apr 2007 01:42:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984447#M754911</guid>
      <dc:creator>Kyris</dc:creator>
      <dc:date>2007-04-19T01:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984448#M754912</link>
      <description>It looks as though this might be historical, as there was no support for time zones or DST in Oracle before 9i.&lt;BR /&gt;&lt;BR /&gt;From 9i onwards, you can use the timestamp data type to store date-and-time information with associated time zone information. There's a brief introduction to the subject at &lt;A href="http://www.devx.com/dbzone/Article/30501." target="_blank"&gt;http://www.devx.com/dbzone/Article/30501.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There is, of course, a caveat: if you use this functionality, you become dependent on Oracle patches for changes to the DST rules (such as the recent US DST change). Also, this will mean a change to the application tables, which may involve reworking some of your application...&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Apr 2007 03:12:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984448#M754912</guid>
      <dc:creator>Andrew C Fieldsend</dc:creator>
      <dc:date>2007-04-20T03:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984449#M754913</link>
      <description>Andy thanks for your response. The link sent does not seem to work.&lt;BR /&gt;My problem is a procedure that we need to change so that it does the job that it should do, as per my post.&lt;BR /&gt;The select statement - &lt;BR /&gt;&lt;BR /&gt;SELECT tz_offset(tzname) from V$TIMEZONE_NAMES;&lt;BR /&gt;&lt;BR /&gt; gives me '+01:00', which is what I need as we are now in GMT+1. When the clocks change at the end of October, will this value change to '+00:00' ?? Does anyone know this answer, as this will be a way out, but only if it changes.&lt;BR /&gt;thanks</description>
      <pubDate>Fri, 20 Apr 2007 05:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984449#M754913</guid>
      <dc:creator>Kyris</dc:creator>
      <dc:date>2007-04-20T05:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984450#M754914</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;what does this query return?&lt;BR /&gt;select dbtimezone from dual; &lt;BR /&gt;&lt;BR /&gt;revert.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Fri, 20 Apr 2007 06:06:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984450#M754914</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2007-04-20T06:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984451#M754915</link>
      <description>Thanks for the reply...&lt;BR /&gt;&lt;BR /&gt;The querry returns '+01:00', which is what I need but will it return '+00:00' after the clocks change in October- which is GMT+0??&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;kyris</description>
      <pubDate>Fri, 20 Apr 2007 08:07:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984451#M754915</guid>
      <dc:creator>Kyris</dc:creator>
      <dc:date>2007-04-20T08:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone 'problems'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984452#M754916</link>
      <description>From the Oracle 9iR2 SQL reference manual: "Oracle automatically determines, for any given time zone region, whether daylight savings is in effect and returns local time values based accordingly."&lt;BR /&gt;&lt;BR /&gt;I assume this means that the result of your select will change as DST does.</description>
      <pubDate>Fri, 20 Apr 2007 09:41:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/timezone-problems/m-p/3984452#M754916</guid>
      <dc:creator>Andrew C Fieldsend</dc:creator>
      <dc:date>2007-04-20T09:41:26Z</dc:date>
    </item>
  </channel>
</rss>

