Skip to content

Commit

Permalink
Add support for SELČ timezone (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeoos authored Sep 20, 2021
1 parent 544ea39 commit 141199b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dateparser/timezones.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,9 @@
('SCT', 14400),
('SDMT', -16800),
('SDT', -36000),
('SEČ', 3600),
('SET', 3600),
('SELČ', 7200),
('SGT', 28800),
('SHEST', 21600),
('SHET', 18000),
Expand Down Expand Up @@ -414,6 +416,7 @@
('UYT', -10800),
('UZST', 21600),
('UZT', 18000),
('VEČ', 7200),
('VET', -16200),
('VLAST', 39600),
('VLAT', 36000),
Expand Down Expand Up @@ -458,6 +461,7 @@
('YST', -32400),
('YWT', -28800),
('zzz', 0),
('Z', 0)]
('Z', 0),
('ZEČ', 0)]
},
]
4 changes: 4 additions & 0 deletions tests/test_timezone_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def setUp(self):
param('Fri Sep 23 2016 10:34:51 UTC+1245', 12.75),
param('2019-07-17T12:30:00.000-03:30', -3.5),
param('2019-07-17T12:30:00.000-02:30', -2.5),
param('16. srpna 2021 9:59:44 SELČ', 2),
param('16. srpna 2021 9:59:44 SEČ', 1),
param('16. srpna 2021 9:59:44 ZEČ', 0),
param('16. srpna 2021 9:59:44 VEČ', 2),
])
def test_extracting_valid_offset(self, initial_string, expected_offset):
self.given_string(initial_string)
Expand Down

0 comments on commit 141199b

Please sign in to comment.