home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sources / bugs / 325 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.6 KB

  1. 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
  2. From: hta@boheme.er.sintef.no (Harald Tveit Alvestrand)
  3. Newsgroups: comp.sources.bugs
  4. Subject: TIMEX (all versions) bug in date handling
  5. Message-ID: <1993Jan12.094035.24923@ugle.unit.no>
  6. Date: 12 Jan 93 09:40:35 GMT
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Reply-To: harald.alvestrand@delab.sintef.no
  9. Organization: SINTEF DELAB, Norway
  10. Lines: 35
  11.  
  12. Since 1993 arrived, many people have found a bug in the TIMEX summing
  13. program "sumtimex", that makes the day of week be 2 days wrong in 1993.
  14. I do not want to do much official work on this, since I have a new version
  15. "nearly" ready to ship (status unchanged since September - been too busy
  16. doing real work) - but here is the patch, anyway.
  17.  
  18. The following patch must be applied:
  19.  
  20. diff -c -r1.1 weekno.perl
  21. *** 1.1 1991/08/22 13:41:37
  22. --- weekno.perl 1993/01/04 23:53:47
  23. ***************
  24. *** 60,66 ****
  25.      local($wday) = $firstday[6];
  26.      # Rule works for some years.....89 to 92 tested, they all hit branch 2...
  27.      if ($wday > 3) {
  28. !       $ret = 6 - $wday;
  29.      } else {
  30.         $ret = 1 - $wday;
  31.      }
  32. --- 60,66 ----
  33.      local($wday) = $firstday[6];
  34.      # Rule works for some years.....89 to 92 tested, they all hit branch 2...
  35.      if ($wday > 3) {
  36. !       $ret = 8 - $wday;
  37.      } else {
  38.         $ret = 1 - $wday;
  39.      }
  40.  
  41.  
  42. -- 
  43.                    Harald Tveit Alvestrand
  44. Harald.Alvestrand@delab.sintef.no
  45. C=no;PRMD=uninett;O=sintef;OU=delab;S=alvestrand;G=harald
  46. +47 7 59 70 94
  47.