home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!ugle.unit.no!boheme.er.sintef.no!hta
- From: hta@boheme.er.sintef.no (Harald Tveit Alvestrand)
- Newsgroups: comp.sources.bugs
- Subject: TIMEX (all versions) bug in date handling
- Message-ID: <1993Jan12.094035.24923@ugle.unit.no>
- Date: 12 Jan 93 09:40:35 GMT
- Sender: news@ugle.unit.no (NetNews Administrator)
- Reply-To: harald.alvestrand@delab.sintef.no
- Organization: SINTEF DELAB, Norway
- Lines: 35
-
- Since 1993 arrived, many people have found a bug in the TIMEX summing
- program "sumtimex", that makes the day of week be 2 days wrong in 1993.
- I do not want to do much official work on this, since I have a new version
- "nearly" ready to ship (status unchanged since September - been too busy
- doing real work) - but here is the patch, anyway.
-
- The following patch must be applied:
-
- diff -c -r1.1 weekno.perl
- *** 1.1 1991/08/22 13:41:37
- --- weekno.perl 1993/01/04 23:53:47
- ***************
- *** 60,66 ****
- local($wday) = $firstday[6];
- # Rule works for some years.....89 to 92 tested, they all hit branch 2...
- if ($wday > 3) {
- ! $ret = 6 - $wday;
- } else {
- $ret = 1 - $wday;
- }
- --- 60,66 ----
- local($wday) = $firstday[6];
- # Rule works for some years.....89 to 92 tested, they all hit branch 2...
- if ($wday > 3) {
- ! $ret = 8 - $wday;
- } else {
- $ret = 1 - $wday;
- }
-
-
- --
- Harald Tveit Alvestrand
- Harald.Alvestrand@delab.sintef.no
- C=no;PRMD=uninett;O=sintef;OU=delab;S=alvestrand;G=harald
- +47 7 59 70 94
-