aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-06 17:45:55 +0000
committerRichard M. Stallman1997-08-06 17:45:55 +0000
commit43776ca0c9936c55d5b1c4c2cba664b65d011298 (patch)
tree160f003e9409d1719bc6afc6756ced8e6243c841
parentcf1ebf43909b6574e2f1a31cd7a5b4ef9b379204 (diff)
downloademacs-43776ca0c9936c55d5b1c4c2cba664b65d011298.tar.gz
emacs-43776ca0c9936c55d5b1c4c2cba664b65d011298.zip
(timezone-parse-date): Handle additional style (9).
-rw-r--r--lisp/timezone.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/timezone.el b/lisp/timezone.el
index 949a7f12dc2..122b986e0d5 100644
--- a/lisp/timezone.el
+++ b/lisp/timezone.el
@@ -131,7 +131,8 @@ Understands the following styles:
131 (5) 22-AUG-1993 10:59:12.82 131 (5) 22-AUG-1993 10:59:12.82
132 (6) Thu, 11 Apr 16:17:12 91 [MET] 132 (6) Thu, 11 Apr 16:17:12 91 [MET]
133 (7) Mon, 6 Jul 16:47:20 T 1992 [MET] 133 (7) Mon, 6 Jul 16:47:20 T 1992 [MET]
134 (8) 1996-06-24 21:13:12 [GMT]" 134 (8) 1996-06-24 21:13:12 [GMT]
135 (9) 1996-06-24 21:13-ZONE"
135 ;; Get rid of any text properties. 136 ;; Get rid of any text properties.
136 (and (stringp date) 137 (and (stringp date)
137 (or (text-properties-at 0 date) 138 (or (text-properties-at 0 date)
@@ -183,6 +184,10 @@ Understands the following styles:
183 ;; Styles: (8) with timezone. 184 ;; Styles: (8) with timezone.
184 (setq year 1 month 2 day 3 time 4 zone 5)) 185 (setq year 1 month 2 day 3 time 4 zone 5))
185 ((string-match 186 ((string-match
187 "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+\\)[ \t]*\\([-+a-zA-Z0-9:]+\\)" date)
188 ;; Styles: (8) with timezone with a colon in it.
189 (setq year 1 month 2 day 3 time 4 zone 5))
190 ((string-match
186 "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+:[0-9]+\\)" date) 191 "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+:[0-9]+\\)" date)
187 ;; Styles: (8) without timezone. 192 ;; Styles: (8) without timezone.
188 (setq year 1 month 2 day 3 time 4 zone nil)) 193 (setq year 1 month 2 day 3 time 4 zone nil))