When we get an inbound message from MMG, the function format_mmg_datetime was converting the date to UTC, however, the provider date is already in UTC format.

This commit is contained in:
Rebecca Law
2020-04-30 14:19:08 +01:00
parent 1d3f9589ea
commit b8283c31d4
2 changed files with 3 additions and 4 deletions

View File

@@ -210,7 +210,7 @@ def test_unescape_string(raw, expected):
@pytest.mark.parametrize('provider_date, expected_output', [
('2017-01-21+11%3A56%3A11', datetime(2017, 1, 21, 11, 56, 11)),
('2017-05-21+11%3A56%3A11', datetime(2017, 5, 21, 10, 56, 11))
('2017-05-21+11%3A56%3A11', datetime(2017, 5, 21, 11, 56, 11))
])
def test_format_mmg_datetime(provider_date, expected_output):
assert format_mmg_datetime(provider_date) == expected_output