TZ is set and exported at the time when sshd is started. However, by the time one arrives at line 1029 in session.c where TZ is supposed to be propagated to the child's environment it is no longer set. All users of the machine are thus destined to live in GMT. Maybe the setting of environ[0] to NULL at line 1111 of sshd.c should at least try and preserve $TZ for future use?
This was fixed a couple of hours ago: - (dtucker) [sshd.c] Back out rev 1.270 as it caused problems on some platforms (eg SCO, HP-UX) with logging in the wrong TZ. ok djm@ Please try tomorrow's snapshot and re-open this bug if there are still problems.
*** Bug 834 has been marked as a duplicate of this bug. ***
This affects several platforms including HPUX and SCO. (Hopefully changing the platforms will let people find it easier).
*** Bug 836 has been marked as a duplicate of this bug. ***
*** Bug 838 has been marked as a duplicate of this bug. ***
This is fixed in the soon-to-be-released 3.8.1p1
Closed with release of portable OpenSSH 3.8.1p1