Ken,

Thanks for your reply.  Here is what we ended up doing - We changed our
environment TZ variable from 

EST5EDT1:00,M4.1.0/2:00:00,M10.4.0/2:00:00
to 
EST0EDT1:00,M4.1.0/2:00:00,M10.4.0/2:00:00    (changed the offset from 5 to
0)

And changed the hardware clock to the local time (EST).

Now Unix, UniData and UniObjects see the same time and date.

Ed Burwell
[EMAIL PROTECTED]
973.361.5400 x1512 

-----Original Message-----
From: Ken Wallis [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 30, 2004 7:40 PM
To: [EMAIL PROTECTED]
Subject: RE: [U2] [UD] UniObjects and Time zones


Ed,

I believe that on AIX TZ is set from /etc/environment during the login
process.  The unirpcd which serves all your UniObjects connections doesn't
go through this process so it likely doesn't have a setting for TZ and
defaults to GMT.

Have a look at the options for unirpcd and see if you can give it an
environment file at startup.  Otherwise you may have to write a wrapper
script called unirpcd which simply sets the environment and execs the real
unirpcd.

Cheers,

Ken

> Burwell, Edward wrote:
>
> When we boot our AIX system, it shows the current date and time as GMT
> (UTC?) and our time zone is EST, therefore when I do a "date" at the Unix
> prompt, I get:
>
> Thu Oct 28 16:25:44 EST 2004
>
> And when I do a "DATE" at our UniData prompt, I get:
>
> Thu Oct 28 16:26:00 EST 2004
>
> These are giving me the correct time and date.
>
> When I do "echo $TZ" at a Unix prompt, I get:
>
> EST5EDT1:00,M4.1.0/2:00:00,M10.4.0/2:00:00
>
> Therefore, our time zone is correct as far as Unix and UniData goes.
> However, when I run the command:
>
> LIST WORK.ORDER DT TM SAMPLE 10
>
> through a UniObjects program (see below), It gives me the
> "raw" date and
> time - with no time zone offset applied.  So my question is,
> where does
> UniObjects get the time zone when a dictionary containing
> @TIME, TIME(),
> @DATE or DATE() is run?
>
> btw, I don't see anything in my .profile that has anything to
> do with time zone.
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

______________________________________________________________________
This e-mail has been scanned by MCI Managed Email Content Service, using
Skeptic(tm) technology powered by MessageLabs. For more information on MCI's
Managed Email Content Service, visit http://www.mci.com.
______________________________________________________________________
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to