Why have I lost the info of  timezone (Timestamps with Timezone )

I have been trying to get timestamps with timezones working in my Java application, but I don't seem to get the data I expect back from the JDBC driver
my field type is Timestamps with Timezone ,in the database,I saw the info of (12-DEC-06 01.12.12.123000 PM -06:00),but I don't know How to get it from Java
I've use the Timestamp aa =rs.getTimestamp("FIELDVALUE");but the timezone is lost, what can I do?
thanks

Timestamps are always GMT based (or could be thought of as timezone neutral) so what you should get back is a timestamp representing a GMT equivalent of the time you see that has a 6 hour offset from GMT. In other words, if the time were 1 PM Central Standard you would get a GMT time of 7 PM.
You should then be able to display that time in any time zone you wish using SimpleDateFormat and specifying the time zone you want to display it in. So if you then display it with Central Standard, the 7 PM GMT would then display as 1 PM again. In other words, 7 PM GMT and 1 PM Central Standard are the same timestamp
If you just display the timestamp using a toString(), you will get the time in the default time zone of the JVM..
Whether the driver actually does this correctly with the Oracle database I can't say. I've made several posts in a variety of places complaining that the driver does not work correctly with timestamps but my experience is limited to regular timestamp fields, not the new Oracle type of timestamp with timezone.
Based on my experience, what you are more likely getting back in the 1 PM- 7 PM example is 7 PM in the default timezone of the JVM.
You should look at the getTimestamp with Calendar options to see if they work better for you.
The main thing to keep in mind is that timestamps are really timezone neutral.

Similar Messages

  • Why have I lost the ability to use the Background Brush in Low Key in my Photoshop Elements 11 Program??? Need this fixed!!!

    Why have I lost the ability to use the Background Brush in Low Key in my Photoshop Elements 11 Program?????  I need this fixed, can anyone help me???

    I'd try resetting the pse 11 preferences.
    In the pse 11 editor Adobe Photoshop Elements Editor (Edit)>Preferences>General, click on Reset Preferences on Next launch
    and then restart the pse 11 editor.

  • HT201272 Why have I lost the scrabble game I bought last year when I downloaded the free new Facebook scrabble game

    WHy have I lost the scrabble game I payed for last year ,when I downloaded the new free Facebook one?

    Don't you see it here?
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
              http://support.apple.com/kb/HT2519

  • Why have I lost the backlight on my nano? How can I fix it?

    Why have I lost most of the backlight on my nano? How can I get it back?

    You'll need to send the iPod in for service either to Apple or a third party service center.
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipod
    B-rock

  • Why have I lost the Norton validation of websites when I search the net

    I've just updated Firefox and now when I 'Google' websites the Norton validation ( a 'tick' against validated sites) has disappeared - why?

    Timestamps are always GMT based (or could be thought of as timezone neutral) so what you should get back is a timestamp representing a GMT equivalent of the time you see that has a 6 hour offset from GMT. In other words, if the time were 1 PM Central Standard you would get a GMT time of 7 PM.
    You should then be able to display that time in any time zone you wish using SimpleDateFormat and specifying the time zone you want to display it in. So if you then display it with Central Standard, the 7 PM GMT would then display as 1 PM again. In other words, 7 PM GMT and 1 PM Central Standard are the same timestamp
    If you just display the timestamp using a toString(), you will get the time in the default time zone of the JVM..
    Whether the driver actually does this correctly with the Oracle database I can't say. I've made several posts in a variety of places complaining that the driver does not work correctly with timestamps but my experience is limited to regular timestamp fields, not the new Oracle type of timestamp with timezone.
    Based on my experience, what you are more likely getting back in the 1 PM- 7 PM example is 7 PM in the default timezone of the JVM.
    You should look at the getTimestamp with Calendar options to see if they work better for you.
    The main thing to keep in mind is that timestamps are really timezone neutral.

  • Why Have I lost the address bar, back/forward buttons etc, and how do I get them back or should i use internet explorer?

    After updating Fire fox I seem to have lost the address bar,back/forward buttons and all my little apps. How do I get it all back and stop it from happening again?
    == This happened ==
    Every time Firefox opened
    == Today 21/06/10

    To get the Menu bar I followed the excellent advice - I had to press the Alt key and V to get the chance to pick toolbars from the drop down menu. I just right-clicked on the blank page and hit Alt-V.
    Thanks for the tip.

  • Why have I lost the ability to play video in iTunes?

    I recently upgraded to itunes 11.0 but now I seem to have lost the ability top play video podcasts, movies or even see trailers in the itunes store movie section. I did install an application called eyetvreporter to try to recover the activation code for eyetv shortly after installing itunes 11. I am not sure this had any effect because Ii can still see the eyetv on the computer. I have reinstalled os X from the recovery partition and reinstalled itunes 11.0. I have no idea how to reset iTunes to allow me to watch videos.

    Strange! I changed the screen resolution, deleted the eyetvreporter, rebooted and the video came back. The problem is solved but not understood.

  • HT4637 Why have I lost the Campbell font in pages?  I have it on my iMac but not on the pages version on my Macbook Air?

    I've just sent a pages document using Campbell font from my iMac to my Air and I've lost the font - where has it gone??
    James

    Campbell is not a standard Mac font. Fonts are held in your Systems libraries they are not part of your document.
    Download it from here:
    http://www.font-db.com/font/CAMPBELL+Regular/25717
    and double click it to install it.
    Peter

  • RAW files from Fujifilm X10, why have I lost the ability to import after last RAW file update?

    When I first installed iPhoto '11, it would not accept imports of RAW files from Fujifilm X10, then when doing an RAW file compatibility update in around April 2013, I could then import X10's RAW files, but when I did the latest RAW file combatibility update about a week ago, I now seem to have lost this ability, WHY? How can I restore this feature?

    For what I understand:
    The problem is that the update applies to the IOS not the software itself (iPhoto or Aperture) so rolling back is almost impossible.
    Meanwhile the most effective way is to send feedback requesting the update:
    http://www.apple.com/feedback/iphoto.html

  • Why have I lost the Mozilla at the top of the screen? (blue line)this was supposed to be my browser,have not changed a thing

    I have tried in vain to figure out...why it changed at all..used to say Modzilla as my broswer..now the blue line shows file,edit view etc... HELP

    Hi curleyshirley1, I think you mean it said Firefox in the top left. Now there is no space in the top left and the tabs just start there. If I understand you then this means that your browser automatically updated to Firefox 29. It is the fastest Firefox version of Firefox ever. It is supposed to be better in every way. With that being said the look has also changed. The replacement to the Firefox button is, the icon in the icon with three horizontal lines near the top right.

  • Why have I lost the icons to BB Bridge???

    Everything seemed to be going well, as I've been learning slowly bout the Playbook. I have been able to connect to the internet via bridge mode tethering, wifi etc. Today, attempting to tether I couldn't connect. So, I checked all the connections for bluetooth ect. I noticed that there were no icons for BB Bridge on the home screen, nor on the scroll list next to all, favorites, media, and games.
    What the heck happened. I did load a couple apps from app world, like Air Browser, Unit converter, and PDF Creator, but why would that delete BB Bridge? Do I need to do a hard reset and reload the version I have is 1.0.8.6067

    After speaking with the 90day BB tech support, they told me it was best to reload the OS.
    They said my situation was odd, and that they've not heard of this happening.  I offered a suggestion of possible downloading of apps pushing others off.  Also, I would think there would be an indication of memory full, not allowing the download or capacity check before download.
    Well, the new OS is installed and everything seems to be working like new. So, I'm happy for now, but the tech in me want's to know why....
    So, here are a few questions for you true developers;
    1. Is there a capacity check before loading new apps?
    2. Is there a memory indicator that will allow or deny due to size of app? (I know there is a list with the hardware setting, but wondered if there would be a pop-up of some sort, warning "near full capacity, memory low"?)
    3. Will the OS push some software if other apps are chosen to be downloaded? ie. "the BB Bridge software"
    4. Is there a possibility of corrupt apps, that may have caused this issue?
          (All of the apps loaded were directly through appworld, via wifi connection direct to Playbook.)
    5. Do any of the apps listed in the OP have known issues?

  • Why have i lost the use of word, power point etc with lion

    Why does lion not support word, powerpoint etc. Also Adobe reader.
    If i had known, i would not have downloaded lion !

    Upgrade to Office 2011 (I assume you have 2004) and there is a new version of Reader at the Adobe site, download it.

  • Why have I lost the data display on my thumbnails in bridge?

    I had my thumbnails set to display capture info and file name. Everything was working ok until yesterday. Now they are just blank with on info. How can I get them to display the data again?

    Check this area of Bridge Preferences.

  • Why have I lost the ability to print pdf files?

    All of a sudden I can't print pdf files.  The print screen shows a blank file and it prints blank, of course.

    This doesn't sound like it is a FornsCentral issue unless you have this problem only with PDF generated from FormsCentral.
    Let me know if that is the case. Otherwise you should ask your question on the Acrobat or Reader forum
    Acrobat Forum: http://forums.adobe.com/community/acrobat
    Reader Forum: http://forums.adobe.com/community/adobe_reader_forums
    Gen

  • HT5824 Why have I lost the Outlook contacts and can only access those in icloud on both my laptop and desktop computers

    I am trying to send information to one of the contacts that is normally in my outlook address book. That book appears to have gone away. The only contacts I have are those in icloud. I would think they would sync. Apparently i need to do that manually? Many of the contacts that have formerly lived in outlook do not show up in icloud. ?????

    If it works on one Firefox 3.6.10 installation, it should work on the other - assuming both PC's have exactly the same version of Norton installed, including that Firefox Toolbar extension. Another possibility is that Norton uses a different version of their software on WinXP than they use on Vista.
    Tools > Addons > Extensions - does the Norton Toolbar show as being incompatible?
    You could try forcing a Norton program update to see if their Firefox extension gets updated.

Maybe you are looking for

  • Re-extraction should not be allowed in J2i5

    Hi friends, I have this business requirement that data should not be re-extracted once the extraction is done in J2I5 . I did not find any  User_exit or BADI for the same . Can anybody suggest me how can i go about it.?

  • Cannot open PDFs in Mail with Mavericks

    When I get emails containing PDFs in Mavericks, I can see the PDF in the context of the message, but there is no indication that there are any attachments, no way to save them to a location, and I cannot even click on them in the message to get them

  • OTL - Shift Premiums for multiple Regular Premium Elements

    Hi We have configured Shift Differential policy such that if employee works between 6.00 am - 8.00, he should recieve "Shift Premium". We have 2 Elements (Say Reg1 and Reg2) configured as Regular Earnings. In Earnings Policy (Type -Daily Overtime Ear

  • WM how to determine storage bins manually for a multi row transfer order?

    Hi to everyone. in our WM configuration, SAP system is posting transfer requirements automatically according to goods receipt. After that, we want to post transfer orders with reference to recently created transfer requirement. We prefer to use Logis

  • Multiple session problem

    Hi, I am using Sen One WEb Server 6.1 as web server, if i am logging in using two different browser instances with two different userids but web container is maintaining only one instance. could you pls help me in solving this. Thanks in advance chan