Page MenuHomePhorge

chat_message_date.vue
No OneTemporary

Size
457 B
Referenced Files
None
Subscribers
None

chat_message_date.vue

<template>
<time>
{{ displayDate }}
</time>
</template>
<script>
export default {
name: 'Timeago',
props: ['date'],
computed: {
displayDate () {
const today = new Date()
today.setHours(0, 0, 0, 0)
if (this.date.getTime() === today.getTime()) {
return this.$t('display_date.today')
} else {
return this.date.toLocaleDateString('en', { day: 'numeric', month: 'long' })
}
}
}
}
</script>

File Metadata

Mime Type
text/html
Expires
Tue, Jan 20, 12:30 PM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
973552
Default Alt Text
chat_message_date.vue (457 B)

Event Timeline