# HG changeset patch # User Richard M. Stallman # Date 870889555 0 # Node ID 7903b3fb5ec537c8c449edf51ac7e027dabebd10 # Parent 1519cf07cfabf3b2611985dc6a08f0a3fc8ca1c5 (timezone-parse-date): Handle additional style (9). diff -r 1519cf07cfab -r 7903b3fb5ec5 lisp/timezone.el --- a/lisp/timezone.el Wed Aug 06 10:56:15 1997 +0000 +++ b/lisp/timezone.el Wed Aug 06 17:45:55 1997 +0000 @@ -131,7 +131,8 @@ (5) 22-AUG-1993 10:59:12.82 (6) Thu, 11 Apr 16:17:12 91 [MET] (7) Mon, 6 Jul 16:47:20 T 1992 [MET] - (8) 1996-06-24 21:13:12 [GMT]" + (8) 1996-06-24 21:13:12 [GMT] + (9) 1996-06-24 21:13-ZONE" ;; Get rid of any text properties. (and (stringp date) (or (text-properties-at 0 date) @@ -183,6 +184,10 @@ ;; Styles: (8) with timezone. (setq year 1 month 2 day 3 time 4 zone 5)) ((string-match + "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+\\)[ \t]*\\([-+a-zA-Z0-9:]+\\)" date) + ;; Styles: (8) with timezone with a colon in it. + (setq year 1 month 2 day 3 time 4 zone 5)) + ((string-match "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+:[0-9]+\\)" date) ;; Styles: (8) without timezone. (setq year 1 month 2 day 3 time 4 zone nil))