Hello Jim,
I think there is confusion between
- java.util.Date and
- java.sql.Date.
If you want to use a native database date field,
use the java.sql.Date class instead the java.util.Date class.
Regards.
Jim Richards wrote:
>
> 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".
--
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
mailto:[EMAIL PROTECTED] http://www-frec.bull.com
Phone: 33.4.76.29.73.53 Fax: 33.4.76.29.76.00
Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
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".