Discussion:
java timezone?
(too old to reply)
b***@gmail.com
2011-10-31 13:13:42 UTC
Permalink
Hi:

I cannot find where the timezone information is held
for java 1.4.2.

I have one original ecs install with java TZ showing
as MSK (Moscow?) and another cloned partition where the
java TZ shows as MDT and it's an hour out. My
config.sys has EAT-3, so the muddle has me all mixed up.

I tried tzupdater.jar, but it only installed the same
as original TZ string in the config.sys.

thanks for any clarification.
Baden
A.D. Fundum
2011-10-31 18:03:59 UTC
Permalink
Post by b***@gmail.com
I cannot find where the timezone information is held
for java 1.4.2.
Not verified: OS2SYS.INI?


--

/* UNTESTED.CMD */
CALL RxFuncAdd 'SysIni','RexxUtil','SysIni'
val=SysIni('SYSTEM', 'TimeZone', 'Active')
SAY 'Len=x'''Left(D2X(Length(val)),4) Left(val, 20)
EXIT
Dave Yeo
2011-11-01 00:42:10 UTC
Permalink
Post by b***@gmail.com
I cannot find where the timezone information is held
for java 1.4.2.
I have one original ecs install with java TZ showing
as MSK (Moscow?) and another cloned partition where the
java TZ shows as MDT and it's an hour out. My
config.sys has EAT-3, so the muddle has me all mixed up.
I tried tzupdater.jar, but it only installed the same
as original TZ string in the config.sys.
thanks for any clarification.
Baden
Being a Windows program, I'd guess in the Registry. Looking quickly it
could be related to xLocaleToken or xWinLocale in
HKEY_CURRENT_USER\CONTROL_PANEL|INTERNATIONAL
Perhaps some googling will give a hint about where Windows keeps its
time zone info.
Dave
b***@gmail.com
2011-11-01 10:17:23 UTC
Permalink
Hi Dave:

Okay, your hint helped a lot. I was able to find on
my ECS partition, a "Registry Editor", which turned out
to be:

\OS2\SYSTEM\REGEDIT2.EXE

This showed where Moscow came from, as my timezone
was set for "Russian Standard/Daylight Time" [???]. The
files where the extra information is kept are:

\OS2\SYSTEM\SYSTEM.DAT
\OS2\SYSTEM\USER.DAT

And the latter had the timezone info. I was able to
copy those two files over to my main partition, and the
time is now correct, even though the timezone is still
"MSK".

So, I am still looking for anywhere to change the
timezone information, (i.e. registry), in ECS, as the
registry editor is all 32 bit coded, and it should be a
lot easier.

thanks,
Baden
Post by Dave Yeo
    I cannot find where the timezone information is held
for java 1.4.2.
    I have one original ecs install with java TZ showing
as MSK (Moscow?)  and another cloned partition where the
java TZ shows as MDT and it's an hour out.  My
config.sys has EAT-3, so the muddle has me all mixed up.
    I tried tzupdater.jar, but it only installed the same
as original TZ string in the config.sys.
thanks for any clarification.
Baden
Being a Windows program, I'd guess in the Registry. Looking quickly it
could be related to xLocaleToken or xWinLocale in
HKEY_CURRENT_USER\CONTROL_PANEL|INTERNATIONAL
Perhaps some googling will give a hint about where Windows keeps its
time zone info.
Dave
ivan
2011-11-01 15:30:03 UTC
Permalink
Post by b***@gmail.com
Okay, your hint helped a lot. I was able to find on
my ECS partition, a "Registry Editor", which turned out
\OS2\SYSTEM\REGEDIT2.EXE
This showed where Moscow came from, as my timezone
was set for "Russian Standard/Daylight Time" [???]. The
\OS2\SYSTEM\SYSTEM.DAT
\OS2\SYSTEM\USER.DAT
And the latter had the timezone info. I was able to
copy those two files over to my main partition, and the
time is now correct, even though the timezone is still
"MSK".
So, I am still looking for anywhere to change the
timezone information, (i.e. registry), in ECS, as the
registry editor is all 32 bit coded, and it should be a
lot easier.
thanks,
Baden
Post by Dave Yeo
    I cannot find where the timezone information is held
for java 1.4.2.
    I have one original ecs install with java TZ showing
as MSK (Moscow?)  and another cloned partition where the
java TZ shows as MDT and it's an hour out.  My
config.sys has EAT-3, so the muddle has me all mixed up.
    I tried tzupdater.jar, but it only installed the same
as original TZ string in the config.sys.
thanks for any clarification.
Baden
Being a Windows program, I'd guess in the Registry. Looking quickly it
could be related to xLocaleToken or xWinLocale in
HKEY_CURRENT_USER\CONTROL_PANEL|INTERNATIONAL
Perhaps some googling will give a hint about where Windows keeps its
time zone info.
Dave
Hi Baden,

What is the full TZ line in your config.sys?

Also look for 'Locale' in system setup and check what you have there -
I am assuming there is such a setting in eCS, I have WSeB here.

ivan

--
Dave Yeo
2011-11-02 05:05:45 UTC
Permalink
Post by b***@gmail.com
Okay, your hint helped a lot. I was able to find on
my ECS partition, a "Registry Editor", which turned out
\OS2\SYSTEM\REGEDIT2.EXE
This showed where Moscow came from, as my timezone
was set for "Russian Standard/Daylight Time" [???]. The
\OS2\SYSTEM\SYSTEM.DAT
\OS2\SYSTEM\USER.DAT
Actually these are the OS/2 ini files. Good to see that Innotek used the
OS/2 API.
Post by b***@gmail.com
And the latter had the timezone info. I was able to
copy those two files over to my main partition, and the
time is now correct, even though the timezone is still
"MSK".
Copying these files over from system to system can create a lot of
problems, much better to use regedit2 and copy the values from one
system then paste them into the other.
Post by b***@gmail.com
So, I am still looking for anywhere to change the
timezone information, (i.e. registry), in ECS, as the
registry editor is all 32 bit coded, and it should be a
lot easier.
OS/2 uses the TZ environment variable. Try set TZ in a command prompt
and see what it displays. Here close to Vancouver, Canada I get
G:\>set TZ
TZ=PST8PDT,3,2,0,7200,11,1,0,7200,3600
which includes the needed info about daylight savings time.
TZ should be set in config.sys
Dave
Dave Saville
2011-11-02 08:59:23 UTC
Permalink
On Wed, 2 Nov 2011 05:05:45 UTC, Dave Yeo <***@gmail.com>
wrote:

<snip>
Post by Dave Yeo
OS/2 uses the TZ environment variable. Try set TZ in a command prompt
and see what it displays. Here close to Vancouver, Canada I get
G:\>set TZ
TZ=PST8PDT,3,2,0,7200,11,1,0,7200,3600
which includes the needed info about daylight savings time.
TZ should be set in config.sys
Dave
One thing to watch is that java *may* need a different TZ format.
Apache2 for example really needs a POSIX format one which I set in the
script that calls apache.
--
Regards
Dave Saville
Chuck McKinnis
2011-11-04 19:34:33 UTC
Permalink
Post by b***@gmail.com
I cannot find where the timezone information is held
for java 1.4.2.
I have one original ecs install with java TZ showing
as MSK (Moscow?) and another cloned partition where the
java TZ shows as MDT and it's an hour out. My
config.sys has EAT-3, so the muddle has me all mixed up.
I tried tzupdater.jar, but it only installed the same
as original TZ string in the config.sys.
thanks for any clarification.
Baden
I have no idea where it is stored for Java, but you can download the
latest TZDATA updater tool (2011k) from the eCS site.
--
Chuck McKinnis
Loading...