diff options
author | Mark McLoughlin <markmc@redhat.com> | 2012-09-03 20:06:09 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2012-09-03 20:13:31 +0100 |
commit | f2d2e4cb0621b27b2b3f864c4352a94174174240 (patch) | |
tree | 5da73125bb7e98317266331987a0b2b60df443a4 /tools | |
parent | bab694ef1d579aca453996e3e9729d96a26e570a (diff) | |
download | python-novaclient-f2d2e4cb0621b27b2b3f864c4352a94174174240.tar.gz |
Fix usage-list date range to use UTC time
Fixes bug #1045456
The date range in Nova's os-simple-tenant-usage is expected to be in UTC
time since launch/termination dates are stored in the DB in UTC time and
we use the client supplied parameters to query DB without conversion.
Switch from using datetime.today() to datetime.utcnow() to fix the issue.
Add a test for the default date range.
Import timeutils from openstack-common so we can control the return value
of utcnow() in the tests.
Change-Id: Iac77e3a4cc9561714d1492c54cef931f9764531e
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pip-requires | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/pip-requires b/tools/pip-requires index 97b9a58c..2c409b3c 100644 --- a/tools/pip-requires +++ b/tools/pip-requires @@ -1,4 +1,5 @@ argparse httplib2 +iso8601>=0.1.4 prettytable>=0.6,<0.7 simplejson |