Article View: gnu.emacs.gnus
Article #549GNUS bug in timezone.el
From: Michael C. Grant
Date: Sun, 03 Jan 1993 17:39
Date: Sun, 03 Jan 1993 17:39
39 lines
1844 bytes
1844 bytes
I came across and fixed a rather simple bug in timezone.el for GNUS 3.14.1.
timezone-parse-date fails to handle dates where the month is spelled out
completely, and those occaisonally do come up in newsgroups---and, if they
do, GNUS can't even open that newsgroup (if you're using dates to sort
them, that is).
This may have been posted before, but here's the patch to allow the
timezone command to handle these cases.
Michael C. Grant
mcgrant@isl.stanford.edu
*** timezone.el Sun Jan 3 17:36:20 1993
--- timezone.el.dist Sun Jan 3 17:24:53 1993
***************
*** 167,176 ****
(cdr
(assoc
(upcase
! (substring
! (substring date
! (match-beginning month) (match-end month))
! 0 3))
timezone-months-assoc))))
(setq day
(substring date (match-beginning day) (match-end day)))
--- 167,174 ----
(cdr
(assoc
(upcase
! (substring date
! (match-beginning month) (match-end month)))
timezone-months-assoc))))
(setq day
(substring date (match-beginning day) (match-end day)))
--
"Long hair, short hair--what's the difference once the head's blowed off?" (?)
Technical Details
Message-ID:
<MCGRANT.93Jan3173920@rascals.stanford.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrantShow Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.gnus,news.software.readers Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant From: mcgrant@rascals.stanford.edu (Michael C. Grant) Subject: GNUS bug in timezone.el Message-ID: <MCGRANT.93Jan3173920@rascals.stanford.edu> Sender: usenet@EE.Stanford.EDU (Usenet) Organization: Information Systems Laboratory, Stanford University Date: 3 Jan 93 17:39:20 Lines: 39