mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Update all dates to use utc, only in the template is it converted to british time.
This commit is contained in:
@@ -101,7 +101,7 @@ def create_test_api_user(state, permissions={}):
|
||||
|
||||
def job_json():
|
||||
job_id = str(generate_uuid())
|
||||
created_at = str(datetime.datetime.now().time())
|
||||
created_at = str(datetime.datetime.utcnow().time())
|
||||
data = {
|
||||
'id': job_id,
|
||||
'service': 1,
|
||||
@@ -128,9 +128,9 @@ def notification_json(service_id,
|
||||
if template is None:
|
||||
template = template_json(service_id, str(generate_uuid()))
|
||||
if sent_at is None:
|
||||
sent_at = str(datetime.datetime.now().time())
|
||||
sent_at = str(datetime.datetime.utcnow().time())
|
||||
if created_at is None:
|
||||
created_at = str(datetime.datetime.now().time())
|
||||
created_at = str(datetime.datetime.utcnow().time())
|
||||
links = {}
|
||||
if with_links:
|
||||
links = {
|
||||
|
||||
Reference in New Issue
Block a user