Use unix epoch for timeago if present.

This commit is contained in:
FireMasterK 2022-02-06 15:35:18 +00:00
parent b2e3a7f560
commit c0e1abba42
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -63,8 +63,8 @@
<font-awesome-icon icon="eye" /> <font-awesome-icon icon="eye" />
<span class="pl-0.5" v-text="`${numberFormat(video.views)} •`" /> <span class="pl-0.5" v-text="`${numberFormat(video.views)} •`" />
</span> </span>
<span v-if="video.uploadedDate" class="pl-0.5" v-text="video.uploadedDate" /> <span v-if="video.uploaded > 0" class="pl-0.5" v-text="timeAgo(video.uploaded)" />
<span v-if="video.uploaded" class="pl-0.5" v-text="timeAgo(video.uploaded)" /> <span v-else-if="video.uploadedDate" class="pl-0.5" v-text="video.uploadedDate" />
</strong> </strong>
</div> </div>
</div> </div>