• Subject: Time fields in Toolbox 1 hour off?
  • From: "Luther Ananda Miller" <luther.miller@xxxxxxxxxx>
  • Date: Wed, 1 Mar 2000 14:59:08 +0100
  • Organization: HYPERe

We have recently installed several PTFs on our AS/400, including SF99104-07.
I am testing some Java applications on a client PC that have been run on a
client in a while (server side java running under WebSphere, which I am
testing in the VAJ websphere test environment.)

The AS/400 is in Sydney n the Sydney time zone. My PC is in Germany in the
Berlin time zone.

A servlet calls a stored procedure which returns the results of a select
statement. One of the fields returned is a java.sql.Time value. This value
is now consistently ONE HOUR later than the value in the database.

If the same servlet is run on the server instead of the client then the time
returned is correct.

The problem is that an applet passes this time value back to a servlet in
order to do an update. The servlet is finding that the time value is
incorrect, and returns as an output parameter the correct value. THIS IS
RETURNED CORRECTLY.

So, it appears that:
1) Time columns returned from a SQL stored procedure result set are
incorrect when the toolbox JDBC is on another platform with another time
zone.
2) Time output variables to a stored procedure are correct.

I seem to remember reading about a similar problem which was fixed a long
time ago. Is it possible it may have surfaced again? I will try and do some
more testing on this.

We are using Toolbox SF59803.

luther.miller @ hypere.com


+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.