]> git.eshelyaron.com Git - emacs.git/commitdiff
(timezone-parse-date): Fix style 8 to accept ISO
authorAlex Schroeder <alex@gnu.org>
Thu, 13 Nov 2003 18:20:08 +0000 (18:20 +0000)
committerAlex Schroeder <alex@gnu.org>
Thu, 13 Nov 2003 18:20:08 +0000 (18:20 +0000)
8601 format (a capital T between the date and the time).

lisp/timezone.el

index 90a5ac37de5eeae0a9f2fa40aaa6ada004c223da..bad269d9cbc7f440f9b97705ac38b5bd34941d83 100644 (file)
@@ -191,11 +191,11 @@ Understands the following styles:
           ;; 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)
+           "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[T \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)
+           "\\([0-9]+\\)-\\([0-9]+\\)-\\([0-9]+\\)[T \t]+\\([0-9]+:[0-9]+:[0-9]+\\)" date)
           ;; Styles: (8) without timezone.
           (setq year 1 month 2 day 3 time 4 zone nil))
          )