[8498] in Athena Bugs

home help back first fref pref prev next nref lref last post

[idallen@watcgl.waterloo.edu: Ultrix 4.x incorrect date if TZ set to EST5DST; zdump wrong too]

daemon@ATHENA.MIT.EDU (John T Kohl)
Tue Oct 29 00:46:47 1991

Date: Mon, 28 Oct 91 21:48:20 PST
To: bugs@Athena.MIT.EDU
From: John T Kohl <jtkohl@cs.berkeley.edu>
Reply-To: jtkohl@cs.berkeley.edu

I noticed similar problems today with PST8PDT on a SIPB office
DECstation.  Perhaps Athena can fix it locally and/or pound on DEC types
too?

From: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL])
Newsgroups: comp.unix.ultrix
Subject: Ultrix 4.x incorrect date if TZ set to EST5DST; zdump wrong too
Date: 28 Oct 91 16:56:56 GMT
Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada

A TZ value of EST5EDT is causing "date" to think we're still on DST:

    # unsetenv TZ
    # date
    Mon Oct 28 11:35:30 EST 1991
    # setenv TZ EST5EDT
    # date
    Mon Oct 28 12:35:46 EDT 1991        <== wrong
    # setenv TZ XXX0YYY
    # date
    Mon Oct 28 17:35:56 YYY 1991

And TZ makes the output from zdump wrong too:

    # setenv TZ junk
    # zdump Zulu Iran
    Zulu  Mon Oct 28 11:25:44 1991 EST
    Iran  Mon Oct 28 11:25:44 1991 EST

The above is all wrong.

    # setenv TZ :Iran
    # zdump Zulu Iran
    Zulu  Mon Oct 28 19:55:56 1991 IST
    Iran  Mon Oct 28 19:55:56 1991 IST

The above is half wrong.

    # unsetenv TZ
    # zdump Zulu Iran
    Zulu  Mon Oct 28 16:25:31 1991 GMT
    Iran  Mon Oct 28 19:55:31 1991 IST

The above is correct.

ULTRIX V4.1 (Rev. 52)  DS5400
ULTRIX V4.2 (Rev. 96)  DS5000

#include <wish/for/electronic/SPR/facility>
-- 
-IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu
 [129.97.140.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada

home help back first fref pref prev next nref lref last post