Whta is going on here !!!

Hello all,
I have a strange problem that I cannot figure out nand need your help.
When I run the following code:
long ts = 796600800000L;//796600800000
Date testDate = new Date(ts);
System.out.println("ts="+ts+",Date="+testDate);
ts = 765064800000L;//796600800000
testDate = new Date(ts);
System.out.println("ts="+ts+",Date="+testDate);
ts = 828219600000L;//796600800000
testDate = new Date(ts);
System.out.println("ts="+ts+",Date="+testDate);
I get this on one computer:
ts=796600800000,Date=Fri Mar 31 00:00:00 IST 1995
ts=765064800000,Date=Thu Mar 31 00:00:00 IST 1994
ts=828219600000,Date=Sat Mar 30 23:00:00 IST 1996
and this on another:
ts=796600800000,Date=Fri Mar 31 01:00:00 IST 1995
ts=765064800000,Date=Thu Mar 31 00:00:00 IST 1994
ts=828219600000,Date=Sat Mar 30 00:00:00 IST 1996
and this on another (and I expect this one):
ts=796600800000,Date=Fri Mar 31 00:00:00 IST 1995
ts=765064800000,Date=Thu Mar 31 00:00:00 IST 1994
ts=828219600000,Date=Sat Mar 30 00:00:00 IST 1996
I have seen many questions like this in the forum but none of them have solution in it.
Our problem is that our SQL query uses this date and thus we are getting different results from the query on different machines.
It drives me nuts !!!!! help....
TIA

Thanks for the replies...
let me add some details:
The time zone was in deed differenet, I changed them and now the results are the same.
ts=796600800000,Date=Fri Mar 31 00:00:00 CAT 1995
ts=765064800000,Date=Thu Mar 31 00:00:00 CAT 1994
ts=828219600000,Date=Sat Mar 30 23:00:00 CAT 1996
The thing is that in the database I do not save the time !!! it should be 00:00:00

Similar Messages

  • Me and my mom share the same itunes account, everytime i download a app it goes to her phone automattically as well, how can i stop this?

    me and my mom share the same itunes account, everytime i download a app it goes to her phone automattically as well, how can i stop this?

    Open itunes
    Connect her iphone.
    Go to the apps tab.
    Uncheck the box that says automatically sync new apps

  • I want to set up a user account for my 3 year old, so when she goes into her account, only her games show up on the desktop

    I am trying to set up a user account for my 3 year old so that when she goes into her account, only her games show up on her desktop.  How??

    yes -- I think I am setting it up right, but when I go into her account to check it, it doesn't work.

  • HT1766 Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • I have 2 iphones on one itunes account. I just upgraded both to ios 8 and now the messages i receive come through to both phones when they used to be seperated. What is going on here?

    I have 2 iphones on one itunes account. I just upgraded both to ios 8 and now the messages i receive come through to both phones when they used to be separated. What is going on here?

    I noticed the same problem after upgrading a few iPhones to IOS 8, all use the same Apple ID.  However, I now notice when I go into Message and instead of selecting a person from my contact list, I start typing their name which brings up a list of people, some of which are not in my contact list and are on one of the other iPhones. There's a circle/exclamation point next to the name which I click on, and one of the options is to "Remove from Recent". How did these names get from one phone to another and how do I remove all "recents"? They do not appear in my contact list. Anyone see this?

  • In attempt to burn blu-ray, I get QuickTime error 0.  Takes hours to export a 7 minute movie from timeline, then get notice it fails.  What's going on here?

    New problem just started 24 hours ago.  When I try to export from the time line to create a QuickTime file, a 7 minute movie on time line takes 3 hours to export and then the export fails, where as a few days ago, that export would take about 10 minutes at most.  I get the same failure notice when I try to share to blu-ray, DVD, or Vimeo.  Tried to use compressor, no such luck as compressor failed to make a .mov file.  I get QuickTime error 0 message about 5 minutes into trying to share to Blu-Ray now.   Does anyone know what is going on here?  I'm running latest update of Snow Leopard on an intel Mac Pro and the latest update to Final Cut Pro X.  I've also installed QT 7.6.6 to use in creating time lapse movie files.

    Same problem here, too. Final Cut Pro X 10.0.3 on OS 10.6.8. However, it is only doing it on ONE of my projects. A 4-second test project burned successfully.
    I'm  actually going to use iDVD to burn copies for a few people, so I only need the movie file from FCPX.
    Would someone please post best export settings for use on a DVD? In FCPX, the project is  in HD (1080p) with all media optimized to ProRes 442. I know it will have to be down-sampled to DVD resolution, but I've always been curious to know what settings will result produce the best possible quality in DVD resolution.
    Thank you!
    Bart

  • I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    I am contemplating replacing my old Ipod with a 8gb touch which supposedly holds up to 1760 songs. In my ITunes library the average size of a 12 song album is 300mb which means I can get 27 albums x 12 songs is 324 songs. Where am I going wrong here?

    There is about 6.9  GBs of free space on an 8 GB Touch for data storage. That translates to roughly 23 of your average albums.
    Holds up to 1760 songs is based on the size of an average track which is about 3 to 4 MBs, whereas your albums have tracks averaging more like 25 MBs per track. I sort of doubt your average album holds what would be about 5 hours.

  • All of a sudden, new tabs have started opening up (in Firefox) advertising games and other stuff. Any idea's of what is going on here?

    All of a sudden, new tabs have started opening up (in Firefox) advertising games and other stuff. Any idea's of what is going on here?

    Try scanning for malware using the removal tools listed near the bottom of the [[Troubleshoot Firefox issues caused by malware]] article.
    It might also help if you could copy and paste troubleshooting information into your reply. See [[Use the Troubleshooting Information page to help fix Firefox issues]] for details.

  • HT201269 My wife switched from an iPhone 4 to an iPhone 5.  Everything transferred over and service is on the new phone.  However, texts are going to her old phone still.  Any idea what the problem is?

    My wife switched from an iPhone 4 to an iPhone 5.  Everything transferred over and service is on the new phone.  However, texts are going to her old phone still.  Any idea what the problem is?

    As long as iMessage is enabled and the old phone is connected to a WiFi access point, it will continue to receive iMessage texts. It won't receive non-iMessage texts nor will it receive any calls.

  • I'm going through **** here, using a spanish key board, to lay down fonts, using FCP X, each and every time the "accent" mark is need over a letter, FCP X shuts down...this is the most feckless system I've worked with in years!!

    I'm going through **** here. Have a client who needs a spanish version of their corporate presentation. Got the Spanish keyboard up. Each and every time I need to use an accent above a letter...FCP X shuts down. What is going on with this system? The most feckless piece of soffware ever!! Ready to pull out the old tower G4 and cut on the FCP 7...

    Okay will do...using the Canadian English Version...
    Also, as you well know in Spanish, the "accent" does "slice" either way. Over vowels, such as "a" and "o"...
    If you have any more advice...I'll gratefully take it...and a much appreciated "thank you"

  • I have a dual 1.8 ghz pwer pc g5 and sometimes i put it in sleep mode and come home on my lunch break and the fan is running at full speed and the computer has frozen up...what is going on here?

    and sometimes i put it in sleep mode and come home on my lunch break and the fan is running at full speed and the computer has frozen up...what is going on here? is it a virus or has my computer been hijacked? it cant be good for the computer...anyone ever had this problem..?

    Your problem has been reported many times, but causes are as varied as individuals.
    Can we assume that a hard shutdown allows a normal restart?
    Can I assume that you have used Disk Utility from your OS X install disc to repair the hard drive directory? The freezes and hard shutdowns require that the drive be repaired (not permissions) or soon the machine won't boot at all.
    If the root issue is software related, in Console (the application) under Logs, there should be loggings around the time of sleep and logs that tell you what process went wild and froze the machine.
    Network activity is also a common casue.
    Other info:
    http://support.apple.com/kb/ht1776
    If hardware related, such as an external drive, other USB device (Wacom tablet) or USB PCI card, ejecting, disconnecting, removing, or in the case of the Wacom, updating drivers, are all potential remedies.

  • I had paid for service to sign pdf, write text on pdfs and convert to word and back etc. Its now asking me to pay for a new service to be able to convert pdf to word, what is going on here?

    I had paid for service to sign pdf, write text on pdfs and convert to word and back etc. Its now asking me to pay for a new service to be able to convert pdf to word, what is going on here?

    Hi,
    I checked your account, your Export PDF service has been expired on Sep 24, 2014.
    Kindly contact our chat support: http://helpx.adobe.com/x-productkb/global/service-b.html
    Regards,
    Florence

  • Went to watch a video on You Tube that I have watched before on my iMac and got the prompt that I had to upload Adobe Flash Player.  Did that, and am still getting the same prompt and can't watch any videos at all.  What is going on here, Apple??

    Went to watch a video on You Tube that I have watched before on my iMac and got the prompt that I had to upload Adobe Flash Player.  Did that, and am still getting the same prompt and can't watch any videos at all.  What is going on here, Apple??

    I do not know how to do this with an Apple TV (I don't have one), but as far as I know Apple TV only does mirroring.
    If you have an HDMI cable long enough to reach your TV from where you sit, then it's easy. The TV could be set up in Extended Desktop mode (mirroring off) as if it was simply another computer monitor, and then you could just drag windows to it. If you have the Displays icon in your menu bar, that's where the setting is, or if the icon is not there, then the setting is in the Displays system preference. But again, that's for conventionally connected monitors, not Apple TV. If you don't have an HDMI cable and wanted a long one that's affordable you can get those at monoprice.com.
    The answer we are still waiting for is if anyone knows if Apple TV can be used in extended desktop (non-mirroring) mode.

  • Excuse Me! What The The Hell Is Going On Here!!

    Ok! I know I'm a trouble maker; but can someone tell me what's going on here. Is this a scam by Superantispyware or do we need to ask our Congressmen what the Hell is going on. Over 200 SOB's are watching me. Doing what?? I know this is not a Toshiba problem, but It's the only place that lets me express my views. Do we have any rights any more??. It's ok if you don't reply;I understand. Are you getting the same results that I get?  I would like to hear from you, but understand if you don't comment. I'm just dumb and not afraid of Satan or the Chinese. Not expecting any replies. I'm sorry for making this a issue here on Toshiba forum and give the staff permission to delete this thread. I may take some time off and gather my thoughts. I think the internet is becoming a very dangerous place. Please be careful my friends,
    Dokie!!
    http://superantispyware.com/download.html
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.
    Attachments:
    Capture48.JPG ‏309 KB

    Hi Jerry! Thanks for your reply! Your probably right. I just don't like them spying on me, but that's the way it is on the internet
    Dokie!
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • What's going on here? Terminal screen pops up after installing Mountain lion.

    I installed mountain lion yesterday! all looked like it was working well. Just now I rebooted my iMac. The first thing I see on my computer is that it booted up in terminal mode! I have white lettering on black background with a lot of lines of text. At the end of many lines of text there is a copyright Regentss of the university of California."? Than it goes on with " MAC Franework successfully initialized."
    The text goes on until " Root device is mounted read-only." than it ask if i want to boot system enter exit & hit return.
    Anybody know what's going on here. I have never experienced this in my many years as a Apple enthusiasts!
    I need some clarification

    You're in single-user mode. Type the word "exit" and press return to get out of it. If it happens again, reset the PRAM.
    Resetting your Mac's PRAM and NVRAM

Maybe you are looking for

  • Setting up iPod Mini with a B/W Power Mac

    I inherited an iPod Nano from my daughter. When I first plugged it into my Mac via a USB 2.0 PCI card, the computer noticed that it did not have my daughter's music selections in iTunes and asked me whther I would like to transfer the selections sinc

  • Focus on a JTextField

    I have a JTextField which is in a JPanel in a JFrame. I have tried grabFocus() and requestFocus() but neither seem to work in ensuring that when the frame is launched that the cursor is blinking on the textbox. Unfortunately I am working on a project

  • Mountain Lion Spotlight no longer indexes "codecs" for Apple Lossless files?

    Hi, I was recently trying to find some Apple Lossless files stored on my hard drive, and I tried searching using Spotlight's "codec" option (by typing "lossless" into the search field in the Finder). However, nothing came up. Upon further investigati

  • Reeal-time 3D graph with multiple plots

    Hello, I realise this is a very complicated question and I would appreciate any healp anyone could give. I am trying to: 1- draw a 3D graph with three plots (plots are from coordinates read from XL) 2- do it in real time, so that only one point from

  • Picture Cube Disc Menu Problem

    Using PE 10.  The Menu Marker Names do not appear on the Scene Selection menus with I use the 'Picture Cube' disc menu.  Works just fine using the 'Fun' disc menu.  I know, I know.... just use the one that works!  Is this only my problem or have othe