Skip to content

Commit b4cb385

Browse files
richardvdweerdtomasbedrich
authored andcommitted
Update util.py
Added support for dutch date format by adding a new pattern to patterns in parse_date()
1 parent 4e85de0 commit b4cb385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycaching/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def rot13(text):
6060
def parse_date(raw):
6161
"""Return a parsed date."""
6262
raw = raw.strip()
63-
patterns = ("%Y-%m-%d", "%Y/%m/%d", "%m/%d/%Y", "%d/%m/%Y",
63+
patterns = ("%Y-%m-%d", "%Y/%m/%d", "%m/%d/%Y", "%d/%m/%Y", "%d-%m-%Y",
6464
"%d.%m.%Y", "%d/%b/%Y", "%d.%b.%Y", "%b/%d/%Y", "%d %b %y")
6565

6666
for pattern in patterns:

0 commit comments

Comments
 (0)