Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle ASP
| Search | Today's Posts | Mark Forums Read
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 22nd, 2005, 12:35 PM
Authorized User
 
Join Date: Jun 2004
Location: Aurangabad, Maharashtra, India.
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem using TimeZone LocalTimeStamp

Hi there,

I have got a problem here. I am working with classic aps web application. This application is being used accross various timezones. Now I am facing problem when I trid to implement the TimeZone provided by oracle 9.1.

above is the query to setting up local timezone for a particular session

           "ALTER SESSION SET TIME_ZONE = '00:00"

This query is executed through a connection object of Adodb.Connection

Now What I expect it to do is, it should manupulate time accordingly while inserting.

if say the server runs on TimeZone '-05:00' then it should add 5 hours when I fire following query

     "INSERT INTO XTEST VALUES(LOCALTIMESTAMP, TRUNC(CURRENT_DATE))"

if say time at server is 10:00Hrs it should insert 15:00Hrs.
where as it picks up my own computer's time i.e. 21:30Hrs.

When I fire same queries from Oralce Client, works fine!

These all queries are fired against Oracle Database from Classic ASP using ADODB.Connection.Execute method.

Any suggestion?


Vinod Pawar
India
__________________
Vinod Pawar
United States


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the local timezone Tomi XSLT 0 July 26th, 2006 06:14 AM
timezone conversion swati_joshi ASP.NET 1.0 and 1.1 Professional 0 June 2nd, 2006 05:21 AM
Problem with LOCALTIMESTAMP vinod_pawar1 Oracle 0 December 22nd, 2005 12:05 PM
TimeZone Issue everest ASP.NET 1.0 and 1.1 Professional 1 November 3rd, 2005 01:54 AM
India TimeZone not listed deepak.vasudevan Forum and Wrox.com Feedback 0 September 2nd, 2005 02:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.