Fix date format in update lease

Change-Id: I3e65a980603e5cbc1f74cbd1be240f9fc97bf57d
Fixes: bug #1263709
This commit is contained in:
François Rossigneux
2014-01-16 15:35:17 +01:00
parent aaf7c93ae6
commit 7e45ff316b

View File

@@ -61,7 +61,7 @@ class LeaseClientManager(base.BaseClientManager):
delta_sec = datetime.timedelta(seconds=seconds)
new_end_date = cur_end_date + delta_sec
values['end_date'] = datetime.datetime.strftime(
new_end_date, '%Y-%m-%dT%H:%M:%S.%f'
new_end_date, '%Y-%m-%d %H:%M'
)
if not values:
return _('No values to update passed.')