Consultor Eletrônico



Kbase P121018: The TZ (time zone) variable is not working on Windows platform
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   04/09/2008
Status: Verified

SYMPTOM(s):

The TZ (time zone) variable is not working on Windows platform

FACT(s) (Environment):

The timezone stay unchanged between EST and PST after setting TZ=PST8PDT
OpenEdge 10.x
Windows
OpenEdge Category: Language (4GL/ABL)
The time zone is set to EST on the system date time properties for the system clock
TZ variable is set to PST8PDT on the system environment variable
TZ variable is set to PST8PDT on the session in the DOS windows
The following is a test result using the query below:

MESSAGE today string(time,"HH:MM:SS")
session:time-source now timezone
os-getenv("TZ")
.
Without TZ environment variable the output from above query displays:

12/06/06 10:03:07 LOCAL 12/06/2006 10:03:07.255-05:00 -300 ?
With TZ=PST8PDT environment variable set to either for the session or on the system environment variable the output from above query displays:

12/06/06 07:08:47 LOCAL 12/06/2006 07:08:47.972-05:00 -300 PST8PDT

CAUSE:

Bug# OE00135669

FIX:

Upgrade to OpenEdge 10.1B02 or later