-
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
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|