From 81cdbc42d41509f629fe8ec0c7605958134e9ed0 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 14 Oct 2010 14:00:01 -0700 Subject: timestamps are passed as unicode --- nova/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/context.py b/nova/context.py index 7e2a54c04..f5d3fed08 100644 --- a/nova/context.py +++ b/nova/context.py @@ -52,7 +52,7 @@ class RequestContext(object): self.remote_address = remote_address if not timestamp: timestamp = datetime.datetime.utcnow() - if isinstance(timestamp, str): + if isinstance(timestamp, str) or isinstance(timestamp, unicode): timestamp = utils.parse_isotime(timestamp) self.timestamp = timestamp if not request_id: -- cgit