Fix usage of method strtime

Function 'oslo_utils.timeutils.strtime()' is deprecated in version '1.6'
and will be removed in a future version.

Change-Id: I5bcf88d870499296d9cc542621ec220a7bffb882
This commit is contained in:
chenghuiyu 2017-09-07 14:18:53 +08:00
parent 0531a0a851
commit 2ec06da007
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ class RequestContext(context.RequestContext):
'project_id': self.project_id,
'read_deleted': self.read_deleted,
'remote_address': self.remote_address,
'timestamp': timeutils.strtime(self.timestamp),
'timestamp': self.timestamp.isoformat(),
'user_name': self.user_name,
'project_name': self.project_name,
'service_catalog': self.service_catalog