Skip to content

Commit

Permalink
Fix datetime issue with usage_data.
Browse files Browse the repository at this point in the history
Fixes LP Bug #923475.

Change-Id: I663629142a8bd3ca8384ef8759d9138f8604db50
  • Loading branch information
Dan Prince committed Jan 29, 2012
1 parent 0213eb4 commit f512f54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -9,6 +9,7 @@ Chmouel Boudjnah <chmouel.boudjnah@rackspace.co.uk>
Chris Behrens <cbehrens+github@codestud.com>
Christopher MacGown <ignoti+github@gmail.com>
Cole Robinson <crobinso@redhat.com>
Dan Prince <dan.prince@rackspace.com>
Dan Wendlandt <dan@nicira.com>
Dean Troyer <dtroyer@gmail.com>
Ed Leafe <ed@leafe.com>
Expand Down
3 changes: 2 additions & 1 deletion novaclient/v1_1/shell.py
Expand Up @@ -1372,7 +1372,8 @@ def do_usage_list(cs, args):
if args.end:
end = datetime.datetime.strptime(args.end, dateformat)
else:
end = datetime.datetime.tomorrow()
end = (datetime.datetime.today() +
datetime.timedelta(days=1))

def simplify_usage(u):
simplerows = map(lambda x: x.lower().replace(" ", "_"), rows)
Expand Down

0 comments on commit f512f54

Please sign in to comment.