aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-01-20 23:23:17 +0000
committerRichard M. Stallman1997-01-20 23:23:17 +0000
commitf8f5c5f4448c66a48ac092879aa2ad4c9d0d5338 (patch)
treec1de686b3fa503f83f7210397cc75c308c3fd95b
parent77851e9c307e4e8b659991914ddc0778b0268e0e (diff)
downloademacs-f8f5c5f4448c66a48ac092879aa2ad4c9d0d5338.tar.gz
emacs-f8f5c5f4448c66a48ac092879aa2ad4c9d0d5338.zip
(timezone-parse-date): Handle 1-digit year.
-rw-r--r--lisp/timezone.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/timezone.el b/lisp/timezone.el
index b4619488960..c26adf78702 100644
--- a/lisp/timezone.el
+++ b/lisp/timezone.el
@@ -190,8 +190,10 @@ Understands the following styles:
190 (setq year 190 (setq year
191 (substring date (match-beginning year) (match-end year))) 191 (substring date (match-beginning year) (match-end year)))
192 ;; It is now Dec 1992. 8 years before the end of the World. 192 ;; It is now Dec 1992. 8 years before the end of the World.
193 (if (< (length year) 4) 193 (if (= (length year) 1)
194 (setq year (concat "19" (substring year -2 nil)))) 194 (setq year (concat "190" (substring year -1 nil)))
195 (if (< (length year) 4)
196 (setq year (concat "19" (substring year -2 nil)))))
195 (setq month 197 (setq month
196 (if (= (aref date (+ (match-beginning month) 2)) ?-) 198 (if (= (aref date (+ (match-beginning month) 2)) ?-)
197 ;; Handle numeric months, spanning exactly two digits. 199 ;; Handle numeric months, spanning exactly two digits.