From 86f1f1386af84c1e43b06dfb1681252c328b43cf Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Mon, 11 Sep 2023 22:28:14 +0200 Subject: [PATCH] [cos] Fix date parsing --- src/cos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cos.py b/src/cos.py index 0a14dd65..bc6807be 100644 --- a/src/cos.py +++ b/src/cos.py @@ -26,7 +26,7 @@ def fetch_milestone(channel): def parse_date(d): # If the date begins with a >3 letter month name, trim it to just 3 letters # Strip out the Date: section from the start - d = re.sub(r'(?:Date\: )?(\w{3})(?:\w{1,4})? (\d{1,2}), (\d{4})', r'\1 \2, \3', d) + d = re.sub(r'(?:Date\: )?(\w{3})(?:\w{1,})? (\d{1,2}), (\d{4})', r'\1 \2, \3', d) return datetime.strptime(d, DATE_FORMAT).strftime('%Y-%m-%d')