× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I for one would certainly like to know what this "other stuff" is.  And from
the number of responses this question received, it's clear that the
"hardcode your timezone" approach is extremely common.  It's the approach I
ended up with.  I looked at my user profile on my V4R5 machine and I don't
see any attributes from which one could deduce my timezone.  And Java 1.3 on
my machine is in fact indifferent to QUTCOFFSET, which I can tell because it
is either 8 hours out or 7 hours out, depending on whether it's daylight
savings time or not.

Franco, you're in Switzerland?  The name for your time zone is
"Europe/Zurich", you can put that in where the examples had "EST".

PC2

-----Original Message-----
From: Larry Loen [mailto:lwloen@us.ibm.com]
Sent: March 8, 2002 06:26
To: java400-l@midrange.com
Subject: Re: Java time on AS/400



Franco Biaggi wrote:

> hello,
> running java apps on AS/400 V4R5M0 JDK1.3 the time is an hour before !!!
> The system time is correct and the system value QUTCOFFSET is set correct
(+1);

While many have given programs to set the time to a particular time zone,
this should not be necessary if QUTCOFFSET is correct, at least not in my
experience of it.

Check your user profile (or the user profile underwhich your job executes).

There are settings for "locale" and "region" to enable OS/400 machines to
deal with geographic dispersion of the underlying people who use it.  I've
found a lot of stuff is indifferent to whether these are set right
(including QUTCOFFSET itself), but Java is not indifferent to at least
QUTCOFFSET and it probably needs the other stuff set right, too.



Larry W. Loen  -   Senior Linux, Java, and iSeries Performance Analyst
                          Dept HP4, Rochester MN


_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

This mailing list archive is Copyright 1997-2024 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.