fix: handle ISO string timestamps in related video thumbnails (fixes #1577)

This commit is contained in:
saschabuehrle
2026-03-23 11:17:53 +01:00
parent eb77a2bca4
commit fdbf7061bc
@@ -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}
</span>
{/if}