[gnus git] branch master updated: m0-5-4-g789c31b =1= nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  789c31bee0f2558e907a9d174afae38fc44092d6 (commit)
      from  18f6803a6350f2726ff65126835c888b623659b8 (commit)


- Log -----------------------------------------------------------------
commit 789c31bee0f2558e907a9d174afae38fc44092d6
Author: Paul Eggert <[email protected]>
Date:   Fri May 4 10:57:22 2012 +0000

    nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2f2679d..23e4235 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-04  Paul Eggert  <[email protected]>
+
+	Fix minor Y10k bug.
+	* nnweb.el (nnweb-google-parse-1): Don't assume years have 4 digits.
+
 2012-05-01  Stefan Monnier  <[email protected]>
 
 	* nnimap.el (nnimap-open-connection-1): Don't leave an "opening..."
diff --git a/lisp/nnweb.el b/lisp/nnweb.el
index a171cb3..8c9c984 100644
--- a/lisp/nnweb.el
+++ b/lisp/nnweb.el
@@ -365,7 +365,7 @@ Valid types include `google', `dejanews', and `gmane'.")
 			       (match-string 1)
 			       (match-string 2)
 			       (or (match-string 3)
-				   (substring (current-time-string) -4)))
+				   (format-time-string "%Y")))
 		     (current-time-string)))
 	(setq From (match-string 4)))
       (widen)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    5 +++++
 lisp/nnweb.el  |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.