mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-05 03:08:24 -04:00
Convert frontend display to be just UTC (#540)
This changeset converts the display of dates and times to be just UTC to match the recent changes in the backend. This unwinds a bit of work that was done previously and allows us to start with a clean slate in how we want to approach displaying dates and times going forward. It also adds a bit of explanatory text to help users. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov> Co-authored-by: stvnrlly <steven.reilly@gsa.gov>
This commit is contained in:
@@ -370,7 +370,7 @@ def test_view_inbox_updates(
|
||||
mock_get_partials.assert_called_once_with(SERVICE_ONE_ID)
|
||||
|
||||
|
||||
@freeze_time("2016-07-01 18:00")
|
||||
@freeze_time("2016-07-01 12:00")
|
||||
def test_download_inbox(
|
||||
client_request,
|
||||
mock_get_inbound_sms,
|
||||
@@ -389,14 +389,14 @@ def test_download_inbox(
|
||||
)
|
||||
assert response.get_data(as_text=True) == (
|
||||
'Phone number,Message,Received\r\n'
|
||||
'(202) 867-5300,message-1,2016-07-01 13:00\r\n'
|
||||
'(202) 867-5300,message-2,2016-07-01 12:59\r\n'
|
||||
'(202) 867-5300,message-3,2016-07-01 12:59\r\n'
|
||||
'(202) 867-5302,message-4,2016-07-01 10:59\r\n'
|
||||
'+33 1 12 34 56 78,message-5,2016-07-01 08:59\r\n'
|
||||
'(202) 555-0104,message-6,2016-07-01 06:59\r\n'
|
||||
'(202) 555-0104,message-7,2016-07-01 04:59\r\n'
|
||||
'+682 12345,message-8,2016-07-01 04:59\r\n'
|
||||
'(202) 867-5300,message-1,2016-07-01 11:00\r\n'
|
||||
'(202) 867-5300,message-2,2016-07-01 10:59\r\n'
|
||||
'(202) 867-5300,message-3,2016-07-01 10:59\r\n'
|
||||
'(202) 867-5302,message-4,2016-07-01 08:59\r\n'
|
||||
'+33 1 12 34 56 78,message-5,2016-07-01 06:59\r\n'
|
||||
'(202) 555-0104,message-6,2016-07-01 04:59\r\n'
|
||||
'(202) 555-0104,message-7,2016-07-01 02:59\r\n'
|
||||
'+682 12345,message-8,2016-07-01 02:59\r\n'
|
||||
)
|
||||
|
||||
|
||||
@@ -618,7 +618,7 @@ def test_monthly_has_equal_length_tables(
|
||||
assert page.select_one('.table-field-headings th').get('width') == "33%"
|
||||
|
||||
|
||||
@freeze_time("2016-01-01 11:09:00.061258")
|
||||
@freeze_time("2016-01-01 1:09:00.061258")
|
||||
def test_should_show_upcoming_jobs_on_dashboard(
|
||||
client_request,
|
||||
mock_get_service_templates,
|
||||
@@ -648,7 +648,7 @@ def test_should_show_upcoming_jobs_on_dashboard(
|
||||
page.select_one('a.banner-dashboard').text
|
||||
) == (
|
||||
'2 files waiting to send '
|
||||
'sending starts today at 6:09am'
|
||||
'sending starts today at 11:09am'
|
||||
)
|
||||
|
||||
assert page.select_one('a.banner-dashboard')['href'] == url_for(
|
||||
|
||||
Reference in New Issue
Block a user