summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorMark McClain <mark.mcclain@dreamhost.com>2012-03-15 15:47:23 -0400
committerMark McClain <mark.mcclain@dreamhost.com>2012-03-15 16:32:05 -0400
commit6a3e22a25c9ee3b259084df2f31c61b37f097e39 (patch)
treed6870c8a9349fe25b64fc85e08225ba5d1f31453 /nova/api
parent97eb92880e0886a3f257f32a88ba9e55b8ec8a90 (diff)
fix timestamps to match documented ec2 api
fixes bug: 823503 Update to the dateTime format to provide three places of precision to microseconds. This change makes the API match the ec2 documents. Change-Id: I765e64e99042ade9fa996dfb1dee603d363f9b2c
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/apirequest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/apirequest.py b/nova/api/ec2/apirequest.py
index 809883299..36223341e 100644
--- a/nova/api/ec2/apirequest.py
+++ b/nova/api/ec2/apirequest.py
@@ -44,7 +44,7 @@ def _underscore_to_xmlcase(str):
def _database_to_isoformat(datetimeobj):
"""Return a xs:dateTime parsable string from datatime"""
- return datetimeobj.strftime("%Y-%m-%dT%H:%M:%SZ")
+ return datetimeobj.strftime("%Y-%m-%dT%H:%M:%S.%f")[:-3] + 'Z'
class APIRequest(object):