share weekKey extension and log splash precache failures

This commit is contained in:
2026-07-12 23:56:47 +02:00
parent f50359b4eb
commit 53bc6d5360
5 changed files with 15 additions and 10 deletions
+3
View File
@@ -64,6 +64,9 @@ extension DateTimeFormatting on DateTime {
String formatRelative() => Jiffy.parseFromDateTime(this).fromNow();
/// Compact `yyyyMMdd` key, e.g. to identify a week-start in timetable caches.
String weekKey() => Jiffy.parseFromDateTime(this).format(pattern: 'yyyyMMdd');
String timeRangeTo(DateTime end) => '${formatHm()} - ${end.formatHm()}';
String formatDateRelativeShort({DateTime? now}) {