changement des date pour OP

This commit is contained in:
2024-03-04 08:10:04 +01:00
parent 4797428378
commit b3b9df1590

View File

@@ -147,9 +147,9 @@ def view_op_caldav(request):
temp_item.desc = item.sDesc
temp_item.key = item.sKey
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:
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:
temp_item.str_end_date = None
all_items.append(temp_item)