[net.news.b] Bug fix for time warp

jmcg@decvax.UUCP (Jim McGinness) (03/29/84)

Here's the fix for the time warp bug.  It should be applied at every
site, but particularly those that receive news eastward across a
timezone boundary.

The basis of the problem is that the getdate parser interprets things
like "next tuesday" as well as "3/28/84".  When we get a date like
"Tue Mar 27 1984 23:05 PST", it messes up because of the mismatch
between the requested day of the week, Tuesday, and the fact that it's
now Wednesday because of timezone differences.

The fix makes the assumption that if a month and day have been given,
this more specific information should overide the less specific
request for a particular day of the week.

Thanks to Donn Seeley for the early detective work and to Lauren for
providing so many examples.

						Jim McGinness
	decvax!jmcg				Digital Equipment Corp.
	(603)844-5703				MKO2-1/H10
						Merrimack, NH, 03054

6a7,17
> /**************************************************************************
>  * Modification History: ...News-2.10.1/src/getdate.y  
>  *		@(#)getdate.y	1.2 (decvax!jmcg) 3/28/84
>  *
>  * 28 Mar 84 --jmcg
>  *	Supress adjustment of date for day-of-week if month-date has
>  *	already been specified.  This prevents incorrect dates resulting
>  *	from parsing a fully-specified date, with day-of-week, from
>  *	another timezone.
>  *
>  **************************************************************************/
504c515
< 	if (dayflag) {
---
> 	if (dayflag && !dateflag) {