Time/date in Java


Forum: Apps
Topic: Time/date in Java
started by: s_t_bris

Posted by s_t_bris on Oct. 25 2005,22:16
I am getting incorrect times showing in an internet based java program (fxgame or fxtrade at www.oanda.com). The java software is programmed to display time according to the users computer, and does so when operating in Windows or Fedora Core 4.  However, when using the java uci, and firefox, the time shown in the software is about 15 hours behind what my computer shows. That makes it very confusing and hard to use.

I'm wondering if this could be related to who compiled the uci (and their time zone) - is there anything in the compilation that could affect this??? I'm in Brisbane, Australia, so there would be about 15 hrs time difference to someone somewhere in the US.

Any other suggestions?  ???

Posted by s_t_bris on Oct. 30 2005,22:43
It seems to be DSL rather than Java.

Rather than relying on the java uci, I downloaded Sun's java and got it working with DSL (easier than I thought it would be). It still has the same issue, where as Fedora Core 4 with exactly the same java software does not. That makes me conclude it must be something with DSL.

Does DSL (1.5) handle date/time in a different way (to say FC4) that could cause this problem??? Java must be calling up the system time somehow, and it musn't be getting it correctly from DSL???

Any ideas/suggestions?

Posted by roberts on Oct. 30 2005,23:51
I don't use java anymore, never looked at FC.
But timezones in DSL are explained < here. >

Posted by s_t_bris on Nov. 01 2005,23:37
Quote (roberts @ Oct. 30 2005,18:51)
I don't use java anymore, never looked at FC.
But timezones in DSL are explained < here. >

Thanks Roberts, looks like it is a timezone issue (why didn't I think of that initially!).

You dont want to include the Aussie timezones with the next release do you? Thanks mate  :;):

I downloaded the time zone source data from < http://www.twinsun.com/tz/tz-link.htm >
Had a quick go at compiling it but failed.  ???     Will have to try again when I have some more time.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.