diff options
author | steve <steve@FreeBSD.org> | 2000-01-24 12:54:44 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-01-24 12:54:44 +0800 |
commit | 1aea691ab44ad62f5bcb080e85a7436615631fdd (patch) | |
tree | a44a7a8b88c8eb23710d9b13ab41358428ee5f4d /comms/hylafax | |
parent | bd181f89bc5142d9700a2978371633dc4d19e9d7 (diff) | |
download | freebsd-ports-graphics-1aea691ab44ad62f5bcb080e85a7436615631fdd.tar.gz freebsd-ports-graphics-1aea691ab44ad62f5bcb080e85a7436615631fdd.tar.zst freebsd-ports-graphics-1aea691ab44ad62f5bcb080e85a7436615631fdd.zip |
Fix a Y2K problem.
PR: 15868
Submitted by: Gregory Bond <gnb@itga.com.au>
Diffstat (limited to 'comms/hylafax')
-rw-r--r-- | comms/hylafax/files/patch-ag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/comms/hylafax/files/patch-ag b/comms/hylafax/files/patch-ag new file mode 100644 index 00000000000..07b830d5d1a --- /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]; |