changement des date pour OP
This commit is contained in:
@@ -147,9 +147,9 @@ def view_op_caldav(request):
|
|||||||
temp_item.desc = item.sDesc
|
temp_item.desc = item.sDesc
|
||||||
temp_item.key = item.sKey
|
temp_item.key = item.sKey
|
||||||
temp_item.done = item.bDone
|
temp_item.done = item.bDone
|
||||||
temp_item.str_start_date = str(item.dtStart.day) + "." + str(item.dtStart.month)
|
temp_item.str_start_date = str(item.dtStart.strftime('%d')) + "." + str(item.dtStart.strftime('%m'))
|
||||||
if item.dtEnd != None:
|
if item.dtEnd != None:
|
||||||
temp_item.str_end_date = str(item.dtEnd.day) + "." + str(item.dtEnd.month)
|
temp_item.str_end_date = str(item.dtEnd.strftime('%d')) + "." + str(item.dtEnd.strftime('%m'))
|
||||||
else:
|
else:
|
||||||
temp_item.str_end_date = None
|
temp_item.str_end_date = None
|
||||||
all_items.append(temp_item)
|
all_items.append(temp_item)
|
||||||
|
Reference in New Issue
Block a user