The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


date synchronization prob

Posted by alex on October 31, 2001 at 11:10 PM

dear ppl,

i'm writing a audit trail prog in JAVA for a distributed system.

i can grab the date by using java.util.Date. which is in
'SGT' format. no problem.

however, when i use the same program in jsp, everything goes
haywire. it seems that that the "java.util.Date" gives out the
date in 'PST' format when used for "JSP"

surprisingly, a fren ran my prog at his computer and everything's fine. the date's in 'SGT' format. but as i tried it
out at another fren's pc, the prob reoccured.

why does the problem occur?
how can i make the prog work in JSP with the correct time?
how can i make sure that the problem doesn't reoccur somewhere

hope u ppl can help. :)


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us