mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-03 13:18:32 -04:00
Updated the serialization of Notification.scheduled_for to include minutes.
This commit is contained in:
@@ -40,7 +40,7 @@ def test_get_utc_in_bst_returns_expected_date(date, expected_date):
|
||||
|
||||
|
||||
def test_convert_bst_to_utc():
|
||||
bst = "2017-05-12 13"
|
||||
bst_datetime = datetime.strptime(bst, "%Y-%m-%d %H")
|
||||
bst = "2017-05-12 13:15"
|
||||
bst_datetime = datetime.strptime(bst, "%Y-%m-%d %H:%M")
|
||||
utc = convert_bst_to_utc(bst_datetime)
|
||||
assert utc == datetime(2017, 5, 12, 12, 0)
|
||||
assert utc == datetime(2017, 5, 12, 12, 15)
|
||||
|
||||
Reference in New Issue
Block a user