Commit 67e7ebd6 authored by adietmue's avatar adietmue
Browse files

Switch time format to iso standard.

parent a9da2b44
......@@ -9,6 +9,8 @@ MONGO_DBNAME = 'pvk'
RESOURCE_METHODS = ['GET', 'POST']
# ISO 8601 time format instead of rfc1123
DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
# A schema for required start/end time tuple
TIMESPAN = {
......
......@@ -21,15 +21,15 @@ def test_create(client):
'room': 'ETZ E 6',
'spots': 30,
'signup': {
'start': 'Mon, 01 Jun 2020 01:15:00 GMT',
'end': 'Mon, 01 Jun 2020 04:15:00 GMT',
'start': '2020-05-01T10:00:00Z',
'end': '2020-05-05T23:59:59Z',
},
'datetimes': [{
'start': 'Mon, 01 Jun 2020 08:15:00 GMT',
'end': 'Mon, 01 Jun 2020 08:15:00 GMT',
'start': '2020-06-05T10:00:00Z',
'end': '2020-06-05T12:00:00Z',
}, {
'start': 'Tue, 02 Jun 2020 08:15:00 GMT',
'end': 'Tue, 02 Jun 2020 08:15:00 GMT',
'start': '2020-06-06T10:00:00Z',
'end': '2020-06-06T12:00:00Z',
}],
}
course_response = client.post('courses', data=course, assert_status=201)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment