From: Paul Eggert Date: Fri, 4 May 2012 10:57:22 +0000 (+0000) Subject: nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug X-Git-Url: http://cgit.sxemacs.org/?p=gnus;a=commitdiff_plain;h=789c31bee0f2558e907a9d174afae38fc44092d6 nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2f2679d9b..23e42353c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-05-04 Paul Eggert + + Fix minor Y10k bug. + * nnweb.el (nnweb-google-parse-1): Don't assume years have 4 digits. + 2012-05-01 Stefan Monnier * nnimap.el (nnimap-open-connection-1): Don't leave an "opening..." diff --git a/lisp/nnweb.el b/lisp/nnweb.el index a171cb35a..8c9c984ba 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)