diff --git a/app/templates/views/api-keys.html b/app/templates/views/api-keys.html index c28089159..34dac7304 100644 --- a/app/templates/views/api-keys.html +++ b/app/templates/views/api-keys.html @@ -45,7 +45,7 @@ {% endcall %} {% if item.expiry_date %} {% call field(align='right') %} - Revoked {{ item.expiry_date|format_datetime }} + Revoked {{ item.expiry_date|format_datetime_short }} {% endcall %} {% else %} {% call field(align='right', status='error') %} diff --git a/tests/app/main/views/test_api_keys.py b/tests/app/main/views/test_api_keys.py index d7c51fcfc..1b2561566 100644 --- a/tests/app/main/views/test_api_keys.py +++ b/tests/app/main/views/test_api_keys.py @@ -39,7 +39,7 @@ def test_should_show_api_keys_page(app_, resp_data = response.get_data(as_text=True) assert 'some key name' in resp_data assert 'another key name' in resp_data - assert 'Revoked Thursday 01 January 1970 at 01:00' in resp_data + assert 'Revoked 1 January at 01:00' in resp_data mock_get_api_keys.assert_called_once_with(service_id=fake_uuid)