This commit is contained in:
Jan Pleterski
2026-11-13 09:15:17 +01:00
parent d3927aac8a
commit d4bc01f202
21 changed files with 294 additions and 1148 deletions
+2 -1
View File
@@ -490,8 +490,9 @@ class _CalendarScreenState extends State<CalendarScreen> {
String _timeText(CalendarEvent event) {
final startTime = event.startTime;
if (event.isAllDay || startTime == null || event.endTime == null)
if (event.isAllDay || startTime == null || event.endTime == null) {
return _t('All day');
}
return '${DateFormat('HH:mm').format(startTime.toLocal())} – ${DateFormat('HH:mm').format(event.endTime!.toLocal())}';
}