From d856efa1dd81f45b1d2400e4304c35d9ec68b76f Mon Sep 17 00:00:00 2001 From: Joseph Kahn Date: Tue, 10 Sep 2019 12:20:34 -0400 Subject: [PATCH] Update parser.py --- arrow/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow/parser.py b/arrow/parser.py index f1469a00b..2720d3c18 100644 --- a/arrow/parser.py +++ b/arrow/parser.py @@ -45,7 +45,7 @@ class DateTimeParser(object): _TZ_NAME_RE = re.compile(r"\w[\w+\-/]+") # NOTE: timestamps cannot be parsed from natural language strings (by removing the ^...$) because it will # break cases like "15 Jul 2000" and a format list (see issue #447) - _TIMESTAMP_RE = re.compile(r"^\d+\.?\d+$") + _TIMESTAMP_RE = re.compile(r"^-?\d+\.?\d+$") _TIME_RE = re.compile(r"^(\d{2})(?:\:?(\d{2}))?(?:\:?(\d{2}))?(?:([\.\,])(\d+))?$") _BASE_INPUT_RE_MAP = {