HP3000-L Archives

March 1995, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Gavin Scott <[log in to unmask]>
Reply To:
Gavin Scott <[log in to unmask]>
Date:
Wed, 8 Mar 1995 11:37:18 PDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
Chris Rice writes:
>We are having a problem with the time on a posix-compliant application
>we run on our HP3000 (4.5).   The time on all the reports/screens is incorrect.
>
>At my HP prompt when I type in time I am showed the correct time of 10:33 AM.
>
>When I enter the shell and type date I get:  Shell/iX> 18:33 GMT
>
>Is there a setting somewhere I am misssing?
 
Your TZ environment variable is probably still set to the default of 'GMT0'.
Type 'set' in the shell (with no parameters) to see all your environment
variables. If you set it to an appropriate value like PST8PDT then the date
command will give you the time the way you expect it (don't forget to 'export'
it after you set it. The Posix pseudo-kornshell lets you say:
 
$ export TZ=PST8PDT
 
I'm not sure just how the TZ env variable is *supposed* to get set. I suppose
it may be left as an exercise for the user to edit .profile or perhaps
/etc/profile to put this site specific info in there, but I haven't really
looked into it.
 
And one of my favorite unix commands:
 
$ time date
 
G.

ATOM RSS1 RSS2