(timezone-parse-date): Corrected regexp for
authorRichard M. Stallman <rms@gnu.org>
Tue, 6 Apr 1999 18:50:08 +0000 (18:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 6 Apr 1999 18:50:08 +0000 (18:50 +0000)
style (5) date format so that tenths of seconds are optional.

lisp/timezone.el

index 3de071a..a7ff21d 100644 (file)
@@ -176,7 +176,7 @@ Understands the following styles:
           ;; Styles: (4) with timezone
           (setq year 3 month 2 day 1 time 4 zone 5))
          ((string-match
-           "\\([0-9]+\\)-\\([A-Za-z]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+:[0-9]+\\)\\.[0-9]+" date)
+           "\\([0-9]+\\)-\\([A-Za-z]+\\)-\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9]+:[0-9]+\\)\\(\\.[0-9]+\\)?" date)
           ;; Styles: (5) without timezone.
           (setq year 3 month 2 day 1 time 4 zone nil))
          ((string-match