From b3b9df159088325eb1662cf28c4a56eb6e3a98d4 Mon Sep 17 00:00:00 2001 From: Kirosbr Date: Mon, 4 Mar 2024 08:10:04 +0100 Subject: [PATCH] changement des date pour OP --- mycaldav/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycaldav/views.py b/mycaldav/views.py index 7f912e3..3be1aa4 100644 --- a/mycaldav/views.py +++ b/mycaldav/views.py @@ -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)