Timestamp - something different in my DB?

hi everybody;
i read several posts about it, but i still have no clue...
i have a simple problem using date fileds in java+DBs. there's a client and a server (OC4J + 8i DB). the client sends a point in time
as a number of seconds from 1970.
on the server i read it, multiply by 1000 and pass it to the DB, into DATE field.
a sample:
// reading seconds from String + conversion
Long seconds = new Long(sub);
Timestamp ts = new Timestamp((seconds.longValue() * 1000));
// set it in a query
DBquery.setTimestamp(j + 1, ts);
// ... adn later execute a query
everything is fine, but... but the date is NOT what was sent from the client. it's shifted. depending on the country
the system runs, it there's a constant difference between the what should be stored in the DB and what is really written there.
that leads to the conclusion that it's related to time-zones. the difference comes probably from the gap between GMT and local time.
anything i can do about it? for example: how to use TimeZone to format the timestamp properly (if possible).
thanx a lot for any help.

Timestamp ts1 = ...
long offset = new java.util.Date().getTimezoneOffset() * 60000;
Timestamp ts2 = new Timestamp(ts1.getTime() + offset);

Similar Messages

  • I have just brought 2 mini's for my boys for xmas.  1. can I connect them both to my existing Itunes account or do I need to set up something different. and 2. can they be used on their dads account as well as mine, or only one?

    I have just brought 2 mini's for my boys for xmas.  1. can I connect them both to my existing Itunes account or do I need to set up something different. and 2. can they be used on their dads account as well as mine, or only one?

    You can set them up with your Apple ID if you want to. You can also set them up with their dad's Apple ID. Depending on how old the boys are, you can even let then have their own Apple ID's. The one thing that you don't want to do is have them use more than one Apple ID on their iPads.
    If you want to be able to share purchased content, then setting them up with either your ID or your husband's (?) ID would be the way to go. If the boys share an ID with one of you, they can download content that you have already purchased without having to pay for it again.
    If you and have the financial wherewithal to allow them to purchase their own individual content, I would recommend letting them have their own Apple ID. This way, as they grow older and eventually move on, they will have their own accounts, their own purchases .... No ties needed to your ID or to dad's ID. FaceTime and Messages will be a little easier to set up if they have their own ID's and they can have their own iCloud accounts as well. However, they must be 13 years old in order to have an Apple ID and iTunes account. If they are under 13, then it's a no brainer you will have to use yours or their father's ID.
    Whatever you decide to do, just don't switch from one ID to another ID on the iPads. That gets confusing and they could end up locking themselves out of one of the ID's for 90 days if they download a past purchase using a different ID.

  • How can I change my iTunes Account Name to something different from my Billing Information Name?

    I have an iTunes account using a relative's credit card. As a result, my iTunes Account Name is changed to her Name in the Billing Information.
    Can I change my iTunes Account name to something different from the Billing Information Name?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I have a Power PC G4 which is running on OSX 10.5.8, it has the AirPort utility but cannot connect to the internet as my iMac can, I think I might need an AirPort Card? Is that the case or do I need something different to connect to a wireless modem?

    I have a Power PC G4 which is running on OSX 10.5.8, it has the AirPort utility but cannot connect to the internet as my iMac can, I think I might need an AirPort Card? Is that the case or do I need something different to connect to a wireless modem?

    Welcome!
    Only one variant of the PowerMac G4 could use the faster Airport Extreme Card. The rest used the original Airport card that is pretty slow.
    To get fast wireless without buying more than one thing, consider this:
    http://eshop.macsales.com/item/Edimax/EW7722IN/
    It goes in an available PCI slot
    There are USB solutions also. However, all PowerMac G4 towers had only slower USB 1.1 ports, so any USB wireless adaptor can only run at about wireless 'B" speeds (slow) unless you also install a PCI USB 2.0 adaptor card. Doing that would allow a USB wireless adaptor to run at its maximum rated speed. These items working together would accomplish that:
    USB wireless "dongle:"
    Newer Technology MAXPower 802.11n/g/b USB Adapter + Plug and play direct or with extension cradle
    USB PCI adaptor:
    http://eshop.macsales.com/Search/Search.cfm?Ntk=Primary&Ns=P_Popularity%7c1&Ne=5 000&N=7069&Ntt=USB+PCI
    Each approach has its advantages. The PCI wireless card is a one-piece solution that takes up no desk space. The USB2 card+USB2 Dongle gives you more fast ports for transferring date from other external USB devices (primarily cameras and external hard drives) at hugely faster rates than can the original ports. I have a USB 2 PCI card in my G4 tower strictly for transferring images from my digital SLR camera in a timely manner.

  • I just upgraded to lion on my intel macbook.  I would like to change my facetime alert to something different than a phone ring and, I would like to be able to have full screen.  How do I do this?

    I just upgraded to lion on my intel macbook.  I would like to change my facetime alert to something different than a phone ring and, I would like to be able to have full screen.  How do I do this?

    Downgrade Lion to Snow Leopard
    1.  Boot from your Snow Leopard Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Quit DU and return to the installer. Install Snow Leopard.
    This will erase the whole drive so be sure to backup your files if you don't have a backup already. If you have performed a TM backup using Lion be aware that you cannot restore from that backup in Snow Leopard (see below.) I suggest you make a separate backup using Carbon Copy Cloner 3.4.1.
    If you have Snow Leopard Time Machine backups, do a full system restore per #14 in Time Machine - Frequently Asked Questions.  If you have subsequent backups from Lion, you can restore newer items selectively, via the "Star Wars" display, per #15 there, but be careful; some Snow Leopard apps may not work with the Lion files.

  • Currently running Adobe XI Standard, i have a PDF that i Save As excel however on my computer it converts it differently than my coworkers computer who has the same Adobe version and same version of Excel 2010. Is something different selected on mine than

    Currently running Adobe XI Standard, i have a PDF that i Save As excel however on my computer it converts it differently than my coworkers computer who has the same Adobe version and same version of Excel 2010. Is something different selected on mine than his? How can i troubleshoot?
    Can provide more information if needed...

    Hello nmohamm,
    To examine the conversion settings in Acrobat, do the following:
    1. Select Edit > Preferences
    2. In the preferences dialog, select the "Convert From PDF" category.
    3. In the "Converting From PDF" list, select "Excel workbook".
    4. Click the "Edit Settings" button to view your conversion settings.
    Regards,
    Charlene

  • How do I change the default '/' shortcut (select none in colour swatch) to something different? Where can i find it in Keyboard Shortcuts?

    How do I change the default '/' shortcut (select 'none' in colour swatch) to something different? Where can i find it in Keyboard Shortcuts?
    Any ideas?

    Thanks so much )))))))

  • Do I need to configure something different,​when I'm using SCXI-1000,​1102 and 1180, together.?

    I am wanting to use SCXI-1000 with 2 modules SCXI-1102, but I also want to access the DAQ (ni pci 6035), through the SCXI-1180, to access some Digital I/O. How can I do that? What cable type between the SCXI and DAQ (6035) do I need to use? Do I need to configure something different? When I only configure the SCXI-1000 and SCXI-1102, I use the cable with 68 pins in both extremities and I don't have problems. But when inserting SCXI-1180, a following error message it is generated:
    "Dev1" digital lines 0, 1, 2 & 4 are in use by the connected SCXI subsystem.
    It happens when observing DIGITAL I/O in Test Panel in M A X.
    thanks
    Brás

    Thanks for the information! The examples sent me, were useful, but always I use Digital functions, just after I can't perform tests with SCXI, it doesn't respond, it becomes inactive until I reset Traditional NI-DAQ Devices.What can I do to have the VI attached running well? Can you help me?
    thanks
    José Brás
    Attachments:
    E_ser_dig_test.vi ‏109 KB

  • Creating something different to Power Point using YouTube video

    Hello
    In two weeks, I must show a discussion about Office 2007 As a Development Platform (see http://office.microsoft.com/en-us/products/FX102204261033.aspx). But I dont want to create the classic Power Point presentation, instead something different or more interactive. For example, for the opening of my discussion, I was thinking in create a video intro like this http://www.youtube.com/watch?v=G1W85xbHGB0 (yes, I played this game: I want to replace the characters pictures (YuGi, Bakura, Marik and Seto) by Word, Excel, Power Point and Access pictures(icons). A classmate told me I can use AdobeAfter Effect, but I dont know if I want is possible to achieve. Can you help me, please?

    I don't want to rain on your party, but...
    Is that possible to make with After Effects? Yes, sure, no problem!
    Is that possible to make with After Effects if it's your first project and have never used the software, based on some advice given on a web forum? Probably not.
    - Jonas Hummelstrand
    http://generalspecialist.com/

  • HT201320 re-setting up a Yahoo email account, I repeatedly get the message "server unavailable, please try again later", is there something different I don't know about?

    re-setting up a Yahoo email account, I repeatedly get the message "server unavailable, please try again later", is there something different I don't know about?

    If you have two-step verification turned on, turn it off by logging into your Yahoo mail account on a browser.

  • Does anybody know if the ipad air 1 is using yosemite or something different? I don't know what type of safari i should install because it disappeared from the ipad. Thanks!

    Does anybody know if the ipad air 1 is using yosemite or something different? I don't know what type of safari i should install because it disappeared from the ipad. Thanks!

    YYosemite is a Mac OS and it doesn't run on an iPad. You cannot delete or install Safari on the iPad. It is on your device somewhere.
    Swipe from screen to screen to look for it.
    Check Settings>General>Restrictions and make sure that you didn't disable it.
    You can also reset the home screen layout and the icon will reappear - but the home screen will return to the way that it looked when you first activated your iPad. Settings>General>Reset>Reset Home Screen Layout.

  • ESSO PG on something different than MS AD

    Is it possible to make PG (from 11.1.1.5.1 ESSO distro) functional on something different than MS AD, like ADAM? I deployed the ADAM, LM and PG (both client and server). LM works successfully and (after first sync) created ADAM nodes (of class vGOUserData) in OU=People,dc=domain,dc=local container. Keeping in mind that (in MS AD case) for PG to add user logon I should first manually create user and only after that use "Add New SSO User" link. So, I manually created two semi-empty nodes of class vGOUserData too ("semi-" - due to lack of data to put in very special attributes, including encrypted ones). After selecting "Manage SSO Users" - "Find User(s)" PG successfully shows me all created users (both from LM and manually created). But when I try to add new logons (no difference, for "LM" or "manual" user entries) PG shows me error message saying that "System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: The local computer is not joined to a domain or the domain cannot be contacted". What's wrong with it (ADAM & PG are deployed on standalone Win2K3 Server)?

    Update: seems that ESSO PG simply doesn't works on LDAP servers other than MS AD. It doesn't works at all. I tested it on ADAM and DSEE. Problems with ADAM are difficult to research, because traffic is protected via GSS-API, so I simply can't sniff network traffic as it encrypted. But as for DSEE, problems are described below:
    Documentation (Oracle® Enterprise Single Sign-on Logon Manager Best Practices: Deploying ESSO-LM with an LDAP Directory Release 11.1.1.5.0 E21003-01) says about locator object: +"You must create the vGOLocator object at least at the same level as the container that holds user accounts. Ideally, vGOLocator should exist inside the directory’s user accounts container"+. So I created LDAP structure as shown below:
    (+)-dc=domain,dc=local (Root context)
    |---(+)-ou=Users
    |---------(+)-ou=vgoLocator
    |---(+)-ou=ESSO
    |---------(+)-ou=People
    |---------(+)-ou=SSOConfig
    As you can see, structure looks quite correct: vgoLocator "ideally exist inside the directory’s user accounts container", right?
    Than I setup application templates, filled LM settings (via LM Administrative Console), wrote them into registry hive and published all those settings into LDAP (DSEE). It works correctly and LDAP structure now looks like that:
    (+)-dc=domain,dc=local (Root context)
    |---(+)-ou=Users
    |---------(+)-uid=ESSO.Administrator (created manually)
    |---------(+)-ou=vgoLocator
    |---(+)-ou=ESSO
    |---------(+)-ou=People
    |--------------(+)-cn=ESSO.Administrator (created by LM while performing LDAP sync)
    |---------(+)-ou=SSOConfig
    |--------------(+)-ou=2c58e3b2-320a-4ed2-a708-90065620e5d1 (created by LM admin console while publishing settings into LDAP)
    OK, now LM works perfectly, but we want to create centralized system, right? So I had to deploy PG. It was deployed and started. The first task was to correctly fill storage settings. I used values as shown below:
    Storage Type: Oracle Directory Server Enterprise Edition
    Server: esso.hq.domain.local:1389
    Root DN: dc=domain,dc=local
    User Path: ou=Users,dc=domain,dc=local
    Connect as User: cn=Directory Manager
    Password: **********
    Use secure connection (SSL): no
    Use configuration objects instead of application list: yes
    Role/Group support: no
    Configuration and role/group objects root DN: ou=SSOConfig,ou=ESSO,dc=domain,dc=local
    Admin Group DN:
    User PrePend: UID
    Config looks OK, isn't it?
    But when I tried so save settings, I got error "Cannot find any configuration objects". Metalink shows me two articles on this problem: 1305060.1 (says that i must not use space in Configuration and role/group objects root DN). Can you see any spaces in "ou=SSOConfig,ou=ESSO,dc=domain,dc=local" string? Next article was 1298762.1 that says that "This is because the container you have listed in the Storage Setting titled 'Configuration and role/group objects root DN:' does not contain any ESSO objects such as templates or password policies". But that container really contains ESSO objects (three, to be more precise), so that wasn't the solution too.
    OK, let's look in depth... I installed wireshark and captured network traffic from PG to LDAP. There was four LDAP-related calls:
    1. PG searches object ou=vgoLocator,dc=domain,dc=local. LDAP says "no such object" (of course, because we read documentation and created locator in "ideal" container - inside Users container). WHY? WHY it tries to find it there???
    2. PG searches LDAP for dc=domain,dc=local. LDAP says "OK"
    3. PG searches LDAP for ou=Users,dc=domain,dc=local. LDAP says "OK"
    4. PG searches LDAP for ou=SSOConfig,ou=ESSO,dc=domain,dc=local. LDAP says "OK"
    That's all. No more LDAP requests, PG simply throws an error as shown above.
    "OK" - said me to myself, let's create locator at the position, where PG expects it to find, i.e. at ou=vgoLocator,dc=domain,dc=local. Wow! PG now accepts settings entered earlier and I almost become happy. LDAP now looks like that:
    (+)-dc=domain,dc=local (Root context)
    |---(+)-ou=Users
    |---------(+)-uid=ESSO.Administrator
    |---(+)-ou=ESSO
    |---------(+)-ou=People
    |--------------(+)-cn=ESSO.Administrator
    |---------(+)-ou=SSOConfig
    |--------------(+)-ou=2c58e3b2-320a-4ed2-a708-90065620e5d1
    |---(+)-ou=vgoLocator
    So, let's play with users, yeah? Let's click on "Manage SSO Users" and have some fun? But PG tells me "Invalid storage settings" error... WTF??? OK, let's start network sniffer again and look, what's happened. Oh-oh... Wireshark shows me that PG tries to logon onto LDAP using credentials "UID=ESSOPG\SVC_SSO,OU=USERS,DC=DOMAIN,DC=LOCAL" and LDAP declines authentication requests. BTW, ESSOPG\SVC_SSO is a local user, used (according to documentation, of course (looks like it's now my favorite phrase)) by IIS as anonymous user. WHY??? Why PG uses that user instead of "cn=Directory Manager", that I entered into storage settings five minutes earlier???
    OK, if PG wants that user, let's create him in LDAP, yes? So I created such an user in LDAP and now it looks like that:
    (+)-dc=domain,dc=local (Root context)
    |---(+)-ou=Users
    |---------(+)-uid=ESSO.Administrator
    |---------(+)-uid=ESSOPG\SVC_SSO
    |---(+)-ou=ESSO
    |---------(+)-ou=People
    |--------------(+)-cn=ESSO.Administrator
    |---------(+)-ou=SSOConfig
    |--------------(+)-ou=2c58e3b2-320a-4ed2-a708-90065620e5d1
    |---(+)-ou=vgoLocator
    Test with LDAP browser shows that I can access LDAP using that newly created user. Just one thing: according to LDAP rules, I have to use double slashes in logon name: "uid=ESSOPG\ \SVC_SSO,OU=USERS,DC=DOMAIN,DC=LOCAL". But PG doesn't know anything about such a rule and simply passes "uid=ESSOPG\SVC_SSO,OU=USERS,DC=DOMAIN,DC=LOCAL" (with one slash) to LDAP. LDAP declines auth request. What to do now? Eureka! Let's enter two slashes directly into PG settings! So, let's go to "Web Service Account" page and add one more slash into "User Name" field. Now it contains value "essopg\ \svc_SSO". Cursor moves to "Save" button, clicks on it....
    PG shows me an error message: "Please enter the User Name in format "domain\userid".".....
    I surrender. I have more than fifteen years experience in software development and information security, but I can't setup such a "simple" solution...
    P.S. I asked local Oracle representative: "have you ever tried to deploy PG on non-MSAD LDAP?". He answered "NO, because it's a very common way - to use existing MS AD to store outside data". Very strange opininon:
    1. MS AD are owned and supported by IT department
    2. IT security projects, like E-SSO are pushed into company by Security department
    3. 1 + 2 means that "The less impact the new solution will make on existing IT infrastructure (BTW, MS AD schema extension and storing outside data in it is a VERY big impact) - the easier the implementation process will be too". It's sad that Oracle doesn't understand such a simple thing
    P.P.S. He also told me that "if something doesn't works, I should create SR". But there is some problem: in order to customer to buy ESSO and support (required to create SR's) I have to persuade him to use such a solution, right? Solution, that currently doesn't works? So, there's the only way remains: I have to buy SR's and create request on my behalf. But what must such an SR include? Phrase "Product doesn't works at all"? Oracle tries to get money several times for single work (once from me, because I have to buy SR in order to make Oracle's product work, and than from customer, who will buy the product itself)? Right?
    P.P.P.S. Forum engine shows two slashes as line feed, so I had to insert space between them in order to show them correctly

  • How do i change my apple email address to something different

    how do i change my apple email address to something different

    You can create a new account, but any content that you downloaded with your existing account will remain tied to that account - so only that account will be able to authorise its content on a new computer, potentially redownload it, and download updates to its apps.
    Creating an account : iTunes: How to set up an Apple ID within iTunes
    Creating an account without giving credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method

  • Ps file saved as PDF on mac - opened on PC changes all colors to something different

    i made a PDF from my ps file in photoshop. I sent it to a printer. he gave me the proof and it was not the same color i had. he stated he couldnt change it because he is on a PC and the file i sent him when he opens in in PS switches to a bitmap. and everything ive done changes the colors to something else. How do i create a PDF from my ps file, to something that from a mac, any PC user can open and retain the info?

    Came here to complain about this maddening feature. Why it doesn't save the PDF out to a separate instance of the document is beyond me. PLENTY of us want to save the PDF without the layers, and want the PSD separate.
    "Oh good, I've completed this document.... let me just save it out as a PDF for client delivery and... Now all the work is gone."
    Genius, Adobe, genius. But it's cool--we'll just keep paying out the nose on a subscription basis with no fix for small errors like this.

  • I added a new Ipod touch and it didn't give me an option of naming it something different than my old ipod which i still have and use

    Is it possible to use both ipods with one itunes? Do they both need different accounts with itunes?

    You can easily change the name of an iPod by just clicking on the name in the left-had side of iTunes under Devices.  You change the name just like you would change a file name.

Maybe you are looking for

  • The link open in the same window - Label based menu

    Hi All, I'm using Xcelsius 2008.  I add a Selector Component "Selector complonenet > Label based menu". I setup 6 Lable and each one link to a URL. When clicking the label on the generated SWF report, the link opened in a new window. So i'd like to k

  • Help! Time to get an iPod Video?

    Help! My 3rd gen. iPod is now dying.... generating "gee.... gee..." sound when playing music - Seems the hard disk is dying. Wish to purchase an iPod Video, however I'm now using a Powerbook G4 12" 867MHz, which only has USB 1.1 ports!!!!! I don't mi

  • ACE Load Balancing algorithm

    Team, I was reading Designing Content Switching Solutions last night. I came across a page that suggested Round Robin for HTTP connections, Least Conns for FTP connections, dst Hash for caching connections and so on. Could someone please provide info

  • PDF with Question marks : Critical

    We are facing one issue in the production . In our application we are generating PDF using FOP. Now this functionality is working fine on the staging server but same is giving problem on the production server. On the staging/ UAT server PDF is genera

  • Routing long text editor change

    Hi, When we go to Routing long text and try to open it, it will open one word document. My requirement is, I want to change that word document as Notepad (text editor) for particular user. Please tell me is it possible to change that word doc to text