🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #2943

GNUS bug in timezone.el

#2943
From: Michael C. Grant
Date: Sun, 03 Jan 1993 17:39
39 lines
2099 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: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant

Show Full Headers
Complete Article Headers
Message-ID: <MCGRANT.93Jan3173920@rascals.stanford.edu>
Subject: GNUS bug in timezone.el
Date: Sun, 03 Jan 1993 17:39:20 +0000
From: mcgrant@rascals.stanford.edu (Michael C. Grant)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant
Newsgroups: gnu.emacs.gnus,news.software.readers
Sender: usenet@EE.Stanford.EDU (Usenet)
Organization: Information Systems Laboratory, Stanford University
Lines: 39