Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pacbell!att!occrsh!occrsh.ATT.COM!rct From: rct@occrsh.ATT.COM Newsgroups: news.software.b Subject: getdate.y bug and fix(!) Message-ID: <147600002@occrsh.ATT.COM> Date: 31 Jan 89 15:51:00 GMT Lines: 24 Nf-ID: #N:occrsh.ATT.COM:147600002:000:741 Nf-From: occrsh.ATT.COM!rct Jan 31 09:51:00 1989 (This may only affect news sites which are gatewaying articles in from notes systems, but the problem seems general enough to warrant a fix). After applying patches 15-17, the parser in getdate() makes a distinction between signed numbers and unsigned numbers. This means that dates of the form "30-Jan-89 02:23 CST" can not be parsed. The following patch corrects this problem. rct@occrsh.att.com *** getdate.y~ Fri Jan 27 09:25:03 1989 --- getdate.y Tue Jan 31 09:29:00 1989 *************** *** 101,106 **** --- 101,108 ---- | UNUMBER MONTH = {month = $2; day = $1;} | UNUMBER MONTH UNUMBER = + {month = $2; day = $1; year = $3;} + | UNUMBER MONTH SNUMBER = /* 30-Jan-89 */ {month = $2; day = $1; year = $3;};