scsh-users
[Top] [All Lists]

Re: Bug in date code

To: Stefan Jankowski <janky@informatik.uni-freiburg.de>
Subject: Re: Bug in date code
From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
Date: Tue, 28 Jan 2003 14:14:22 +0100
Cc: <scsh@zurich.ai.mit.edu>
>>>>> "Stefan" == Stefan Jankowski <janky@informatik.uni-freiburg.de> writes:

Stefan> According to the manual (date (time) "UTC") and (date (time) 0)
Stefan> should do the same, which is /not quite/ the case:  apparently
Stefan> the timezone name information is not set up properly in the
Stefan> latter case. The same is true for other numeric values <> 0.

Stefan> From what the manual says, one would expect a tz-name of the form
Stefan> "UTC+nn:nn:nn" in the latter case.

You're right, of course.  I've just fixed in CVS for 0.6.4 which
should be out pretty soon.  I've attached the patch in case you need
this right away.

Many thanks for the report!

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla

Index: scsh/time1.c
===================================================================
RCS file: /cvsroot/scsh/scsh-0.6/scsh/time1.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- scsh/time1.c        8 Jan 2003 10:14:11 -0000       1.12
+++ scsh/time1.c        28 Jan 2003 13:11:10 -0000      1.13
@@ -135,7 +135,7 @@
        int offset = s48_extract_fixnum(sch_zone);
        t += s48_extract_fixnum(sch_zone);
        d = *gmtime(&t);
-       sch_tz_name = s48_enter_string("");
+       sch_tz_name = S48_FALSE;
        sch_tz_secs = s48_enter_fixnum (offset);
        }
     else {
<Prev in Thread] Current Thread [Next in Thread>
  • Bug in date code, Stefan Jankowski
    • Re: Bug in date code, Michael Sperber [Mr. Preprocessor] <=