Commit aaad52f2 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Display completion date as a date and time

CCBUG: 374774
parent 65d7a0a8
Pipeline #82231 passed with stage
in 5 minutes and 50 seconds
<?xml version="1.0" encoding="UTF8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<title></title>
<style></style>
</head>
<body>
<style type="text/css">
th {
text-align: left;
width: 25%;
white-space: nowrap;
font-weight: bold;
}
.header th {
vertical-align: middle;
}
td {
padding-left: 5px;
}
</style>
<table class="header">
<tr>
<th>
<img src="file:task-complete" align="top" height="16" width="16" alt="Todo" title="Todo" />
</th>
<td>
<b>
<u>completed to-do</u>
</b>
</td>
</tr>
</table>
<table class="main">
<!-- Calendar -->
<!-- Location -->
<!-- Start date -->
<!-- Due date -->
<!-- Duration -->
<!-- Recurrence -->
<!-- Description -->
<!-- Comments -->
<!-- Reminders -->
<!-- Organizer -->
<!-- Attendees - Chair -->
<!-- Attendees - Required Participants -->
<!-- Attendees - Optional Participants -->
<!-- Attendees - Observers -->
<!-- Categories -->
<!-- Priority -->
<!-- Completed -->
<tr>
<th valign="top">Completed:</th>
<td>Wednesday, 22 September 2021 20:28:15 UTC</td>
</tr>
<!-- Attachments -->
</table>
<!-- Creation date -->
<p>
<em>Creation date: Wednesday, 22 September 2021 20:28:00 UTC</em>
</p>
</body>
</html>
BEGIN:VCALENDAR
PRODID:-//K Desktop Environment//NONSGML KOrganizer 5.18.2 (21.08.2)//EN
VERSION:2.0
X-KDE-ICAL-IMPLEMENTATION-VERSION:1.0
BEGIN:VTODO
ORGANIZER;CN=Stable:MAILTO:gjDitchfield@acm.org
DTSTAMP:20210922T202815Z
CREATED:20210922T202800Z
UID:c962d358-f448-43fc-ac2f-4a629625a7a9
SEQUENCE:1
LAST-MODIFIED:20210922T202815Z
SUMMARY:completed to-do
COMPLETED:20210922T202815Z
PERCENT-COMPLETE:100
STATUS:COMPLETED
END:VTODO
END:VCALENDAR
......@@ -280,6 +280,7 @@ void IncidenceFormatterTest::testDisplayViewFormatTodo_data()
QTest::addColumn<QString>("name");
QTest::newRow("todo-1") << QStringLiteral("todo-1");
QTest::newRow("todo-2") << QStringLiteral("todo-2");
}
void IncidenceFormatterTest::testDisplayViewFormatTodo()
......
......@@ -171,7 +171,7 @@
{% if incidence.completedDate %}
<tr>
<th valign="top">{% i18nc "Completed: date" "Completed:" %}</th>
<td>{{ incidence.completedDate|kdate }}</td>
<td>{{ incidence.completedDate|kdatetime }}</td>
</tr>
{% else %}
<tr>
......
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