Skip to content

Commit 13336f7

Browse files
committed
Fixed merge issues
1 parent 267f89b commit 13336f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/dot_ext/views/authorization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,13 @@ def post(self, request, *args, **kwargs):
331331
application=app
332332
)
333333
if dag.expiration_date is not None:
334-
dag_expiry = strftime('%Y-%m-%d %H:%M:%SZ', dag.expiration_date.timetuple())
334+
dag_expiry = strftime('%Y-%m-%dT%H:%M:%SZ', dag.expiration_date.timetuple())
335335
except DataAccessGrant.DoesNotExist:
336336
dag_expiry = ""
337337

338338
elif app.data_access_type == "ONE_TIME":
339339
expires_at = datetime.utcnow() + timedelta(seconds=body['expires_in'])
340-
dag_expiry = expires_at.strftime('%Y-%m-%d %H:%M:%SZ')
340+
dag_expiry = expires_at.strftime('%Y-%m-%dT%H:%M:%SZ')
341341
elif app.data_access_type == "RESEARCH_STUDY":
342342
dag_expiry = ""
343343

0 commit comments

Comments
 (0)