Matthias Nott
2026-04-01 b33ef0d78c9da9a45f67fd28fcd7bcd18358fe69
lib/widgets/message_bubble.dart
....@@ -326,9 +326,12 @@
326326
327327 Widget _buildFooter(BuildContext context) {
328328 final isDark = Theme.of(context).brightness == Brightness.dark;
329
- final time = DateFormat('HH:mm').format(
330
- DateTime.fromMillisecondsSinceEpoch(message.timestamp),
331
- );
329
+ final dt = DateTime.fromMillisecondsSinceEpoch(message.timestamp);
330
+ final now = DateTime.now();
331
+ final isToday = dt.year == now.year && dt.month == now.month && dt.day == now.day;
332
+ final time = isToday
333
+ ? DateFormat('HH:mm').format(dt)
334
+ : DateFormat('dd.MM. HH:mm').format(dt);
332335
333336 return Row(
334337 mainAxisSize: MainAxisSize.min,