DST prob for conversion from US/Eastern- GMT but not from GMT- US/Eastern.

Hi folks,
I'm running the following SQL against a Oracle 10.2.0.1 g server using Oracle SqlDeveloper 1.5.3 & then again using SQLPlus 10.2.0.1.0.
I'm attempting to provide SQL that highlights the jump forward by one hour at 2am US/Eastern on 14th Mar 2010.
In order to do this I've converted times from GMT into US/Eastern using the oracle function from_tz and to_timestamp.
The following sql statements are suffixed with a 'correct' or 'incorrect' as to whether they correlate to what I would expect and indeed to the time returned from the World Clock website.
=======================
= Via Oracle SqlDeveloper 1.5.3
=======================
-- The first section of selects highlight the jump of 1 hour forward that occurs on the 14th of March 2010 by converting the GMT time to the corresponding US/Eastern time and the second block reverses the conversion.
select from_tz(to_timestamp('14-MAR-2010 0500' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 00:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0600' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0659' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:59:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0700' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0701' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:01:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0800' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 04:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0000' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 05:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0100' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06:00:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0159' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06:59:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0200' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 07:00:00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('14-MAR-2010 0300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08:00:00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('14-MAR-2010 0301' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08:01:00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('14-MAR-2010 0400' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 09:00:00.000000000 US/EASTERN incorrect
which is as I would expect. At 6:59am GMT the time in US/Eastern is 1:59 am, however, at 7:00am the time in US/Eastern is now 3:00am. This correlates to the times I get back when I perform the same calculations using the converter at the WorldClock.
http://www.timeanddate.com/worldclock/converter.html
However when I attempt to perform the same conversions except in reverse i.e. from US/Eastern to GMT I get different results.
-- everything is fine up until the actual time of the change over (2am US/Eastern). With the 2:00am time though I would expect Oracle or perhaps even the SqlDeveloper client to indicate either of the following :-
a) the time 14-MAR-10 02:00am US/Eastern is actually a non-existant time as per the WorldClock.
b) that it's defaulting the time 14-MAR-10 02:00am to 14-MAR-10 03:00am US/Eastern
instead the results proceeding the sql statements are output and for any time on/after 2am they are 1 hour behind their correct GMT times as per the world clock.
I understand that there is a patch for timezone's from 10.2.0.1 to 10.2.0.4 that should address this, however, the reason I'm posting this is because when I run the above SQL in sqlplus against the same server I get different results except this time both conversions are incorrect.
=======================
= Via SqlPlus 10.2.0.1.0
=======================
select from_tz(to_timestamp('14-MAR-2010 0500' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 00.00.00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0600' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01.00.00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0659' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 01:59:00.000000000 US/EASTERN correct
select from_tz(to_timestamp('14-MAR-2010 0700' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 02.00.00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('14-MAR-2010 0701' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03:01:00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('14-MAR-2010 0800' , 'DD-MON-YYYY HH24MI'), 'GMT') at time zone 'US/Eastern' from dual; -- returns 14-MAR-10 03.00.00.000000000 US/EASTERN incorrect
select from_tz(to_timestamp('13-MAR-2010 2300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 04.00.00.000000000 GMT correct
select from_tz(to_timestamp('14-MAR-2010 0000' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 05.00.00.000000000 GMT correct
select from_tz(to_timestamp('14-MAR-2010 0100' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06.00.00.000000000 GMT correct
select from_tz(to_timestamp('14-MAR-2010 0159' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 06.00.00.000000000 GMT correct
select from_tz(to_timestamp('14-MAR-2010 0200' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 07.00.00.000000000 GMT incorrect
select from_tz(to_timestamp('14-MAR-2010 0300' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08.00.00.000000000 GMT incorrect
select from_tz(to_timestamp('14-MAR-2010 0301' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 08.01.00.000000000 GMT incorrect
select from_tz(to_timestamp('14-MAR-2010 0400' , 'DD-MON-YYYY HH24MI'), 'US/Eastern') at time zone 'GMT' from dual; -- returns 14-MAR-10 09.00.00.000000000 GMT incorrect
so it's as if the Oracle Client SqlDeveloper somehow intervenes as the results come back from the server an adjusts it for the first set of conversions but not the second.
Basically it looks like I need the patch for the timezones for 10.2.0.1 but what about the Clients? Is there patches I then need for them? Would the SqlPlus client that ships with 10.2.0.4 return the correct results or once the patch is applied to the server.
Has anyone else encountered this problem and if so would they be able to point me in the direction of a resource describing and resolving it?
Thanks,
Mark.

Hey Robert,
Yes indeed we are paying for Oracle support? As far as I know I logged in through metalink in an effort to investigate this problem.
Our DBA upgraded from 10.2.0.4 to 10.2.0.1 and all the inconsistency went away thankfully.
Thanks for taking the time to reply to me,
Mark.

Similar Messages

  • Input Tax code from logical partner LS but not from indiv vendor partner LI

    Hi,
    Find that tax code at vendor invoice is being taken from logical partner (LS) , but not from the individual vendor partner number (LI) . Bothe the partners are maintained in WE20 , OBCA , OBCD & OMRY.
    Like to know the reason / setting to pick up tax code from logical partner (tax rates are same in both cases).
    With regards,
    Mrinal

    Hi Dove,
    I think you can use a substitution for field Bank Type at Item Level (TCODE OBBH). This would fill your bank type when you post the document in FI, then you won't have problems in F110.
    Hope that helps.Cheers.
    Ignacio.

  • Why does icloud notes go from pc to ios but not from ios to pc?

    Why does icloud notes go from pc to ios but not from ios to pc?

    Yes, and the music trasferred, I can see it in the folder, but it's not displayed in iTunes.

  • I can print from my iPad 3 but not from my new iPad mini which has a lower spec. What should I do?

    Question. Why can I print from my iPad 3 but not from my new iPad mini which has a lower spec?

    The "lower specs" have nothing to do at all with why you cannot print. Are you connected to the same Wi-Fi network that the printer & the iPad 3 is on?

  • PDF prints from Acrobat 8 Pro, but not from Acrobat 9 Pro

    I have a PDF that prints fine when I print from Acrobat 8 Pro, but when I open the same PDF in Acrobat 9 Pro, only portions of each page actually print out.
    All systems running Windows XP Pro, SP3
    A8P 8.1.2
    A9P 9.1.1
    Any ideas?

    Well, for those following this thread or needing a solution, I found a work-around though I'm still not sure why the initial problem exists.
    In Acrobat 9 Pro, once you have the main print dialogue box open, follow the steps below:
    1) Click ADVANCED
    2) Select PRINT AS IMAGE
    3) Set DPI to 300
    4) Click OK
    5) Make any other typical print setup adjustments as you normally would and finish printing as usual

  • What will make the picture from FCP studdering from the HDMI output, but not from the firewire output ?

    I have a Mac Mini 2010, 8G ram,running on Snow Leopard. I'm playing some video clips from FinalCut Pro 7.0.3. When I'm using the HDMI output,the picture will be studdering on a horizontal panning picture. This problem does not happen when I'm using the firewirw output, which I can't use anymore with my new playback system..
    Is there any setup I can use to fix this studdering?

    Sorry about that, have had no need for pasting output so far as I was using Ubuntu/Mint/Sabayon so could work most things out myself.  Thanks for letting me know   Also, please mark this post SOLVED as well as STUPID lol.  I removed Pulseaudio and went over my Alsamixer settings with a LOT more careful attention, discovered that something vital was not unmuted. Doh!!  Have to say, Arch is the best learning experience ever, though

  • Procedure runs from 9i odbc drivers but not from 10g.

    Hi
    i have a old vc++ application which calls a stored procedure.
    This application has been in use for a long time.
    earlier the Database server and client were both oracle 9i.
    now we moved the server and some of the clients to 10g.
    The application still works from machine with 9i clients (with older odbc drivers)
    but from machines with 10g client (with newer odbc drivers) i get the following error.
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    ( ) - + case mod new not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    table avg count current exists max min prior sql stddev sum
    i also get:
    [Oracle][ODBC][Ora]ORA-06550: line 1, column 16
    The procedure has three parameters which it recieves as type NUMBER:
    CREATE OR REPLACE PROCEDURE "TEST"."MYPROCNAME"
    (prm1 NUMBER, prm2 NUMBER, prm3 NUMBER)
    AS
    /*...body of the procedure...*/
    The process flow in application code (vc++) goes something like this:
    SQLBindParameter(handelToSTMT,1, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm1, 0, NULL);
    SQLBindParameter(handelToSTMT,2, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm2, 0, NULL);
    SQLBindParameter(handelToSTMT,3, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm3, 0, NULL);
    SQLPrepare(handelToSTMT,"{call myProcName(?, ?, ?)}",SQL_NTS);
    SQLExecute(handelToSTMT);
    Is ther some change in how 10g odbc parameter bindings work?
    Can it be possible to change the procedure to compensate for that?
    (somehow i can't get the formatiing right, even after multiple edits)

    This is your post should look like -
    Hi i have a old vc++ application which calls a stored procedure. This application has been in use for a long time. earlier the Database server and client were both oracle 9i. now we moved the server and some of the clients to 10g. The application still works from machine with 9i clients (with older odbc drivers) but from machines with 10g client (with newer odbc drivers) i get the following error. PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( ) - + case mod new not null others <an identifier> table avg count current exists max min prior sql stddev sum i also get: [Oracle][ODBC][Ora]ORA-06550: line 1, column 16 The procedure has three parameters which it recieves as type NUMBER:
    CREATE OR REPLACE PROCEDURE "TEST"."MYPROCNAME" (prm1 NUMBER, prm2 NUMBER, prm3 NUMBER)
    AS /*...body of the procedure...*/ The process flow in application code (vc++) goes something like this:
    SQLBindParameter(handelToSTMT,1, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm1, 0, NULL);
    SQLBindParameter(handelToSTMT,2, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm2, 0, NULL);
    SQLBindParameter(handelToSTMT,3, SQL_PARAM_INPUT, SQL_C_SSHORT, SQL_INTEGER, sizeof(parm1), 0, &parm3, 0, NULL);
    SQLPrepare(handelToSTMT,"{call myProcName(?, ?, ?)}",SQL_NTS);
    SQLExecute(handelToSTMT);Is ther some change in how 10g odbc parameter bindings work? Can it be possible to change the procedure to compensate for that?
    -hope this will help all the user to go through your script.
    Regards.
    Satyaki De.

  • Can print from HP printer assistant but not from windows

    I ran the basic driver setup for my wireless printer.  Everything looked OK.  I then tried to print a test page from the control panel printer properties page.  The document was shown as printing but nothing printed.  I also had the same results when trying to print a Word document.
    I then ran the HP Printer Assistant and successfully printed a Printer Status Report and a Wireless Network Test Results report.  Both showed everything was OK.
    The printer is on a wireless network with a dynamic IP of 192.168.0.4
    The printer works fine on 2 Windows 7 computers.

    Hello @JimTW and welcome to the HP Forums!
    I would like to help get you printing on that Windows 8.1 computer
    I'd recommend first that you run the HP Print and Scan Doctor. Does it find any problems? If so, please follow whatever suggestions it makes for you. Are you able to print the test page from the tool?
    If that doesn't work, are you able to put the printer's IP address into an Internet Browser (Internet Explorer, Firefox or Chrome) and get the printer's information page?
    If you're still unable to print from Word or the Control Panel Printer Properties, please let me know which model HP printer you have and I'll have a further look into things.
    Hope to hear from you soon,
    Happy Holidays!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • HT201335 AirPlay Mirroring is working from iPad and iPhone, but not from Macbook Pro.  How to fix?

    I can see and activate AirPlay Mirroring from Macbook but nothing displays on the TV when mirroring is activated (screen changes from Apple TV menu to blank screen only).  I have 3rd generation Apple TV and a brand new Macbook Pro, so AirPlay Mirroring is supported by both devices.  I can display video content on the TV from my MacBook from iTunes by selecting to display on Apple TV instead of my computer, but it does not work for mirroring.
    For reference, when I activate AirPlay Mirroring from iPad or iPhone, it works perfectly and content is displayed on my TV.
    Has anyone else had this problem and know how to fix it?

    Hello jsa1973,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/ts4215
    About AirPlay Mirroring in OS X Mountain Lion
    http://support.apple.com/kb/ht5404
    Best of luck,
    Mario

  • Why will my IPad print from my gmail account but not from my Yahoo email?

    I just got a new printer &amp; it works for my gmail account but won't print from Yahoo. Also Yahoo is showing a lock on its tab at the top of page although I am able to look at my emails. Can anyone please advise me as to what to do? Thanks.

    A restore might help.
    Backup & Restore
    Restore iOS

  • Apps move from ipad to iphone, but NOT from iphone to ipad?  Please help.

    Does anyone have an idea on how to solve this issue?

    Apps don't move from one iOS device to another. That's impossible.
    All apps originate from Apple. They are downloaded directly to your iPhone or iPad. Or, you can download them to your computer, then sync the iOS device using iTunes. In any event, you only have to pay for an app once. Anything you downloaded on one device can be downloaded to another device. Apple does not charge you for the same app twice, as long as you use the same Apple ID for both.

  • Hp d110a prints blurry from any iOS device, but not from any other kind of device.

    My D110a prints blurry...almost like a shadow...when printing via AirPrint on any iOS device, but if I print from other devices, or just print a report, it prints correctly. I have attempted to search on the device's control panel (both on the device and web-based) to see if there is a print setting, and I will also check my router.
    Does anyone know why this would be happening? I have access to another HP ePrint All-In-One at my job, and my iPad prints fine to that printer.
    Thanks much,
    Chris

    Hello Choirguy,
    Welcome to the HP Support Forums! I understand when printing from Apple Devices with the AirPrint driver it prints blurry. We know it is not the HP Photosmart D110a, as you can print reports from the front panel with no problem and all other Operating systems are fine and print correctly. Please let me know the following:
    1. Is the D110a connected directly to a wall outlet, without power strips or surge protectors connected?
    2. What other devices are you able to successfully print from, and how are they connected USB or Wireless>
    3. Do you have any software installed on the devices that are able to print from?
    I will watch for your reply, so we can continue.
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • I can burn CDs from Windows Media Player, but not from itunes.  I always get Error 2131.  How do I transfer music files from itunes to Window Media Player Library?...or convince itunes to burn a CD?

    Cannot burn CD from itunes.

    The thing is, they are in the unprotected format? (
    They are protected WMA from when you RIP'd them with WMP. iTunes will not read them.
    Go to WMP Tools -> Rip Music.
    Under Rip settings, it is set to *Windows Media Audio* and most likely *Copy protect music* is ticked. This is how it is protected.
    You will need to reRIP them all from CD.

  • Deleting photos from the camera rol but not from photostream

    When deleting photos from the camera rol, sometimes the delete action triggers the deletion of the photo in the photostream as well, sometimes not.  What triggers this and how to prevent the photo to be deleted from the photostream as well ?

    My Photo Stream FAQ - Apple Support
    Get help using My Photo Stream - Apple Support

  • I can sync from pc to ios but not from ios5 to pc

    Changes from my computer go to the iphone and ipad, but changes to iphone do not appear in Outlook (Outlook 2010 on Windows 7 PC).
    There does not appear to be a manual sync option anywhere, nor can I find a time interval setting or any information about when or how often a sync occurs.
    I can tell you that when I open iCloud on the PC I get an error that the Push service stopped working, but dispite that error I get changes on my devices.

    Once you set your Exchange Calendar as the default here:
    Settings > Mail, Contacts, Calendars > scroll down to Default Calendar > Select your Exchange calendar
    All new events should be created in your Exchange calendar unless manually changed.

Maybe you are looking for