summaryrefslogtreecommitdiff
path: root/lisp/timezone.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-07-10 17:19:28 +0000
committerRichard M. Stallman <rms@gnu.org>2005-07-10 17:19:28 +0000
commitf44c13705f7749f95153296e66e2475e43399def (patch)
treecddcbf94c2533bbf3b89145506aebca3774b623f /lisp/timezone.el
parent385480e59a8bdf199cbd903ca42eb938a4ec886f (diff)
downloademacs-f44c13705f7749f95153296e66e2475e43399def.tar.gz
(timezone-parse-date): Changed first regexp
so it will not mistakenly match dates with no time zone.
Diffstat (limited to 'lisp/timezone.el')
-rw-r--r--lisp/timezone.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/timezone.el b/lisp/timezone.el
index cd6e3ce769f..692e2a682ce 100644
--- a/lisp/timezone.el
+++ b/lisp/timezone.el
@@ -149,7 +149,7 @@ Understands the following styles:
(time nil)
(zone nil)) ;This may be nil.
(cond ((string-match
- "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]*\\([-+a-zA-Z0-9]+\\)" date)
+ "\\([0-9]+\\)[ \t]+\\([^ \t,]+\\)[ \t]+\\([0-9]+\\)[ \t]+\\([0-9]+:[0-9:]+\\)[ \t]+\\([-+a-zA-Z0-9]+\\)" date)
;; Styles: (1) and (2) with timezone and buggy timezone
;; This is most common in mail and news,
;; so it is worth trying first.