From e92b5356c6f72dfba56ebb3611270ee4caa2a26a Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 24 Jan 2000 04:54:44 +0000 Subject: Fix a Y2K problem. PR: 15868 Submitted by: Gregory Bond --- comms/hylafax/files/patch-ag | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 comms/hylafax/files/patch-ag (limited to 'comms') diff --git a/comms/hylafax/files/patch-ag b/comms/hylafax/files/patch-ag new file mode 100644 index 000000000000..07b830d5d1aa --- /dev/null +++ b/comms/hylafax/files/patch-ag @@ -0,0 +1,13 @@ +--- util/xferstats.sh.in.orig Sun Jan 23 19:45:49 2000 ++++ util/xferstats.sh.in Sun Jan 23 19:45:29 2000 +@@ -186,7 +186,9 @@ + # + function cvtDateTime(s) + { +- yday = substr(s,7,2)*365 + substr(s,4,2) - 1; ++ y = substr(s,7,2); ++ if ( y < 50) y += 100; ++ yday = y*365 + substr(s,4,2) - 1; + mon = substr(s,0,2) + 0; + for (i = 0; i < mon; i++) + yday += daysInMonth[i]; -- cgit v1.2.3