Skip to content

Commit

Permalink
Add 'Sept' for 'September' (#1071)
Browse files Browse the repository at this point in the history
* Add 'Sept' for 'September'

Due to an error with my Google Sheets table, I found that Google (and [DIN 5008](https://www.din-5008-richtlinien.de/startseite/datum/)) use `Sept` as abbreviation for `September`, but `dateparser` only understood `Sep`. It looks like both `Sept` and `Sep` are valid.

This PR adds `Sept` as variant of `September`.

* Update JSON data and add test
  • Loading branch information
wulmer committed Nov 11, 2022
1 parent 95b8a96 commit e398627
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions dateparser/data/date_translation_data/de.py
Expand Up @@ -37,6 +37,7 @@
],
"september": [
"sep",
"sept",
"september"
],
"october": [
Expand Down
Expand Up @@ -34,6 +34,7 @@
],
"september": [
"sep",
"sept",
"september"
],
"october": [
Expand Down
1 change: 1 addition & 0 deletions tests/test_date_parser.py
Expand Up @@ -117,6 +117,7 @@ def setUp(self):
param('21. Dezember 2013', datetime(2013, 12, 21)),
param('19. Februar 2012', datetime(2012, 2, 19)),
param('26. Juli 2014', datetime(2014, 7, 26)),
param('1. Sept 2000', datetime(2000, 9, 1)),
param('18.10.14 um 22:56 Uhr', datetime(2014, 10, 18, 22, 56)),
param('12-Mär-2014', datetime(2014, 3, 12)),
param('Mit 13:14', datetime(2012, 11, 7, 13, 14)),
Expand Down

0 comments on commit e398627

Please sign in to comment.