nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 May 2012 10:57:22 +0000 (10:57 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 4 May 2012 10:57:22 +0000 (10:57 +0000)
lisp/ChangeLog
lisp/nnweb.el

index 2f2679d..23e4235 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix minor Y10k bug.
+       * nnweb.el (nnweb-google-parse-1): Don't assume years have 4 digits.
+
 2012-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * nnimap.el (nnimap-open-connection-1): Don't leave an "opening..."
index a171cb3..8c9c984 100644 (file)
@@ -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)