From 9235eae608b3d6ed0c63a237420b70b57f0b8753 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Fri, 10 Dec 2021 00:09:42 +0100 Subject: [PATCH] Scrub dates: Fix date regex limit handler parsing --- changedetectionio/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/__init__.py b/changedetectionio/__init__.py index 8741e45d..718731f8 100644 --- a/changedetectionio/__init__.py +++ b/changedetectionio/__init__.py @@ -316,7 +316,7 @@ def changedetection_app(config=None, datastore_o=None): # I noticed chrome will show '/' but actually submit '-' limit_date = limit_date.replace('-', '/') # In the case that :ss seconds are supplied - limit_date = re.sub('(\d\d:\d\d)(:\d\d)', '\\1', limit_date) + limit_date = re.sub(r'(\d\d:\d\d)(:\d\d)', '\\1', limit_date) str_to_dt = datetime.datetime.strptime(limit_date, '%Y/%m/%d %H:%M') limit_timestamp = int(str_to_dt.timestamp())