Browse Source

Fix usage of method isotime

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

Change-Id: Ibfc71882907677d5c2d4e7237ba95ff52e538979
chenghuiyu 1 year ago
parent
commit
42ad072bab
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      iotronic/objects/utils.py

+ 1
- 1
iotronic/objects/utils.py View File

@@ -112,7 +112,7 @@ def dt_serializer(name):
112 112
 
113 113
     def serializer(self, name=name):
114 114
         if getattr(self, name) is not None:
115
-            return timeutils.isotime(getattr(self, name))
115
+            return getattr(self, name).isoformat()
116 116
         else:
117 117
             return None
118 118
     return serializer

Loading…
Cancel
Save