The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

JAVA Guru help needed by Patch 2004-12-21 08:15:38
I'm having issues with getting a Calendar type from a web service via SOAP messaging protocol. The issue is, the time is in Zulu format, and I need it in another time zone. So instinctively I do something like thus:

        TimeZone z = TimeZone.getTimeZone("America/New_York");
        Calendar c = time; // passed in via method call
        c.setTimeZone(z);
Then I do all kinds of stuff with it. However, the time is still off by the respective 4 hrs. Any Idea's as how to get the correct time zone conversions here?
[ Reply ]
  The JRE's timezone handling is pretty screwed up by HadEnuf2004-12-21 08:27:08
    This makes me sad :P by Patch2004-12-21 09:35:46
  Perhaps.. by Delior2004-12-21 10:00:21

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)