🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sources.bugs
1 messages
1 total messages Started by Harald Tveit Alvestrand Tue, 12 Jan 1993 09:40
TIMEX (all versions) bug in date handling
#708
Author: Harald Tveit Alvestrand
Date: Tue, 12 Jan 1993 09:40
35 lines
1638 bytes
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads