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.