Hello all ...

I'm just trying to get an idea of what people are doing to get around
issues with date/time database fields in relation to their java code.

Currently I use a Long to store the time in milliseconds from GMT (the
value returned by System.currentTimeMillis()), and then when I bring
back the time I put it into a Date object in my entity bean.

The client though wants to use the native database date field. We're
using PostgreSQL ...

I'm still using Jonas 1.4, but if this has been addressed in later versions
then I'll upgrade.

One of the reasons this is a problem is that the Java version (IBM's 1.1.8 for
Linux) doesn't seem to be localised, so when I use SimpleDateFormat to
output a text string, then it only comes with Pacific Standard Time (I think),
which doesn't help us at all (we'ew in Sydney, Australia) ...

Thanks ...




----
CyberCyberCyberCyber Pty Ltd
 http://www.cyber4.org/cyber4/index.html
  New Media For The New Millennium
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to