openvms - java - timezone - daylight savings - what the heck????

T

troy

Please help, I have been searching on the internet all day for the
answer to why java times are off by one hour on openvms.

Here is how my timezone is currently set:

MAKAROSOFT>@sys$manager:utc$time_setup show

AUTO_DLIGHT_SAV is set to "1".
OpenVMS will automatically change to/from Daylight Saving Time.
(in time zones that use Daylight Saving Time)

LOCAL TIME ZONE = CANADA / PACIFIC -- DAYLIGHT TIME
LOCAL SYSTEM TIME = 21-AUG-2006 20:21:20.07 (PDT)
TIME DIFFERENTIAL FACTOR = -7:00
TIME ZONE RULE = PST8PDT7,M4.1.0/02,M10.5.0/02
Change PST to PDT on the First Sunday of April (2-Apr-2006) at
02:00
Change PDT to PST on the Last Sunday of October (29-Oct-2006) at
02:00


The above looks fine and when I enter 'show time' I get:

MAKAROSOFT>sh ti
21-AUG-2006 20:24:27

This time is correct too. But when I run my java test program I get:

MAKAROSOFT>java "Test"
Mon Aug 21 19:25:51 GMT-08:00 2006 ??????????????????

My test program looks like:

MAKAROSOFT>ty test.java

import java.util.Date;
public class Test {
public static void main (String[] args) {
System.out.println(new Date());
}
}

my java version is:

MAKAROSOFT>java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition
Fast VM (build 1.4.2-4.p5, build J2SDK.v.1.4.2:11/23/2005-04:19, native
threads, jit_142)

OpenVMS version is: OpenVMS V8.2

So what the heck am I missing?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top