From fdbf7061bcf923a70c12202fe55605d2db0fc192 Mon Sep 17 00:00:00 2001 From: saschabuehrle Date: Mon, 23 Mar 2026 11:17:53 +0100 Subject: [PATCH] fix: handle ISO string timestamps in related video thumbnails (fixes #1577) --- .../src/lib/components/thumbnail/VideoThumbnail.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/materialious/src/lib/components/thumbnail/VideoThumbnail.svelte b/materialious/src/lib/components/thumbnail/VideoThumbnail.svelte index a65ab2bd..85e17bce 100644 --- a/materialious/src/lib/components/thumbnail/VideoThumbnail.svelte +++ b/materialious/src/lib/components/thumbnail/VideoThumbnail.svelte @@ -359,7 +359,12 @@ {video.viewCountText ?? cleanNumber(video.viewCount ?? 0)} • {video.published && video.published !== 0 - ? relativeTimestamp(video.published * 1000, false) + ? relativeTimestamp( + typeof video.published === 'string' + ? new Date(video.published).getTime() + : video.published * 1000, + false + ) : video.publishedText} {/if}