Commit 7e45ff31 authored by François Rossigneux's avatar François Rossigneux

Fix date format in update lease

Change-Id: I3e65a980603e5cbc1f74cbd1be240f9fc97bf57d
Fixes: bug #1263709
parent aaf7c93a
......@@ -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.')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment