Default timezone changes out of nowhere?



Hi everybody,

we have a very serious problem with timezones. Basically the default timezone is changing for no apparent reason back to UTC, but only after some time has lapsed since application start. This totally messes up any date/time output and calculations.

To investigate this we are logging the default tiemzone, timezone offset and daylight saving offset frequently with Timezone.getDefault(). For some hours it would be 'America/Denver' with proper offsets, then suddenly it changes to UTC. Nobody is ever calling Timezone.setDefault(). There is no apparent reason or pattern why or when it happens.

This is on a BEA Weblogic 8.1 app server with an RMI server, a few servlets and JSPs in a 1.4.2 JDK.

Any ideas what could be causing this? Is it somehow possible to tap into the JDK method Timezone.setDefault(), e.g. to log a stack trace, in order to learn what is executing this? Your help is greatly appreciated, after more than a week I can't think of anything else to try...

Werner
.



Relevant Pages

  • Re: Strategies for time offsets
    ... There isn't a mechanism for a negative delta time within the quadword storage, though applications are certainly free to stuff a sign bit somewhere. ... The UTC format is often a better choice here, particularly when dealing with the storage of time values. ... And then, in the core of the program, I would simply need to do a LIB$ADD_TIMES and not have to worry about whether the offset is negative or positive. ... Barring cases where this timezone stuff is the bulk of the operation and there's nothing else around consuming more cycles or wallclock time -- I/O tends to be my go-to example here for massive overhead -- I'd tend to look to optimize this math stuff and any associated system call overhead later. ...
    (comp.os.vms)
  • Re: Is it acceptable to post a URL to request review of Userability?
    ... It is the legal standard in the UK (though we actually use UTC). ... timezone with every date. ... The data should be saved in UTC, together with the applicable Offset. ... Give an option to choose the country. ...
    (comp.infosystems.www.authoring.html)
  • Re: Default timezone changes out of nowhere?
    ... > timezone is changing for no apparent reason back to UTC, ... Does the timezone revert to Amrc/Dnvr, ... or is it stuck at UTC? ... > ...Is it somehow possible to tap into ...
    (comp.lang.java.programmer)
  • Re: How to convert a given local time to UT considering Daylight Saving Times....
    ... > localtime and gives me the right offset or even the right UTC... ... There's only one UTC. ... The timezone could be guessed roughtly as longitude/15, ...
    (comp.unix.programmer)
  • Re: Requiring a date be entered as mm/dd/yy on a form field.
    ... specify that they cannot calculate to that precision. ... Furthermore, UTC ... use whatever standard they are given. ... Most areas have some name that they use to refer to their timezone. ...
    (microsoft.public.scripting.jscript)