]> git.eshelyaron.com Git - emacs.git/commitdiff
1999-09-07 Edward M. Reingold <reingold@emr.cs.uiuc.edu>
authorDave Love <fx@gnu.org>
Tue, 7 Sep 1999 16:19:13 +0000 (16:19 +0000)
committerDave Love <fx@gnu.org>
Tue, 7 Sep 1999 16:19:13 +0000 (16:19 +0000)
* diary-lib.el (list-diary-entries): Make sure two-digit years
have leading zeros.

lisp/calendar/diary-lib.el

index 33a5cb38376f5082acb8abda1f05b8ecf1c771b7..c35dcd248240551c118440fb0af9ecf375c9ac51 100644 (file)
@@ -291,7 +291,7 @@ These hooks have the following distinct roles:
                            (concat
                             "\\*\\|0*" (int-to-string year)
                             (if abbreviated-calendar-year
-                                (concat "\\|" (int-to-string (% year 100)))
+                                (concat "\\|" (format "%02d" (% year 100)))
                               "")))
                           (regexp
                            (concat