mirror of
https://github.com/skoelle/wt32sc01-dashboard.git
synced 2026-09-17 17:30:25 +00:00
homescreen calender same format as subpage
This commit is contained in:
@@ -66,9 +66,9 @@ String formatCalendarPreview(const CalendarData &c) {
|
||||
int shown = 0;
|
||||
for (const auto &ev : c.events) {
|
||||
if (shown >= 2) break;
|
||||
if (shown > 0) s += "\n";
|
||||
s += sanitizeGermanText(ev.summary.substring(0, 22));
|
||||
s += "\n" + DateUtils::formatShortDE(ev.startAt, ev.allDay);
|
||||
if (shown > 0) s += "\n--------------------\n";
|
||||
s += DateUtils::formatShortDE(ev.startAt, ev.allDay);
|
||||
s += "\n" + sanitizeGermanText(ev.summary.substring(0, 22));
|
||||
++shown;
|
||||
}
|
||||
if (s.length() == 0) s = "Keine Termine";
|
||||
|
||||
Reference in New Issue
Block a user