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)