Skip to content

A self-hosted media server and file management system

fix: date formatting on video card

aminnausinb4a8a16a3877
diff --git a/resources/js/components/cards/data/VideoCard.vue b/resources/js/components/cards/data/VideoCard.vue
index 31450ec3..4f7a9dd2 100644
--- a/resources/js/components/cards/data/VideoCard.vue
+++ b/resources/js/components/cards/data/VideoCard.vue
@@ -146,11 +146,8 @@ const contextMenuItems = computed(() => {
</span>
</span>
- <h4
- class="truncate text-end"
- :title="`Date Uploaded: ${toFormattedDate(new Date(videoData.file_modified_at ?? videoData.date + ' GMT'))}\nDate Scanned: ${toFormattedDate(new Date(videoData.date_created))}`"
- >
- {{ toFormattedDate(new Date(videoData.file_modified_at ?? videoData.date + ' GMT')) }}
+ <h4 class="truncate text-end" :title="`Date Uploaded: ${toFormattedDate(videoData.file_modified_at)}\nDate Scanned: ${toFormattedDate(videoData.date_created)}`">
+ {{ toFormattedDate(videoData.file_modified_at) }}
</h4>
<span v-if="videoData.video_tags.length" class="flex w-full flex-wrap gap-1 overflow-clip [overflow-clip-margin:4px] sm:hidden" title="Tags">