DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: timezone problem

  1. #1
    Join Date
    Feb 2005
    Posts
    7

    timezone problem

    Hi,
    I have my dbtimezone was in US/Eastern.so i wrote a Function which is used by a trigger for the conversion of time to GMT.
    CREATE OR REPLACE FUNCTION GET_GMT RETURN DATE
    IS

    returndate DATE;

    BEGIN
    select sysdate-(substr(tz_offset(dbtimezone),1,1)||'1')*to_dsinterval('0 '||substr(tz_offset( DBTIMEZONE ),2, 5)||':00')
    into returndate from dual;


    RETURN returndate;

    END GET_GMT;

    Now,
    My Db servers changed their timezones to GMT.Now this fucntion is returning not the GMT or EST.
    pls help me out how to get the GMT ,if db is already in GMT
    Looking for your Help.
    Thanks,
    RujuPriya

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    If your servers are already in GMT, then get rid (DROP) the function!
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width