Hello Jeff,
## Deppen, Jeff : Wed, 3 Nov 2004 10:57:06 -0500
DJ> All, Does anyone know of a way to dictate the timezone
DJ> org.apache.axis.types.Time uses? It appears to ALWAYS convert a
DJ> local time to UTC. (I've got some picky client app developers
DJ> that want the time as Eastern Standard Time.)
According to the source code you can't.
=== cut Time.java ===
[...]
private static SimpleDateFormat zulu =
new SimpleDateFormat("HH:mm:ss.SSS'Z'");
// We should always format dates in the GMT timezone
static {
zulu.setTimeZone(TimeZone.getTimeZone("GMT"));
}
[...]
public String toString() {
synchronized (zulu) {
return zulu.format(_value.getTime());
}
}
[...]
=== cut Time.java ===
So it will always serialize org.apache.axis.types.Time as UTC.
Some time ago I solved such problem by patching the source code by hand.
Regards,
Egor Pervuninski