Skip to content

Commit

Permalink
Revert "Show relative timestamps on signatures overview page."
Browse files Browse the repository at this point in the history
This reverts commit 6c17d1c.
  • Loading branch information
fancycode committed Apr 9, 2024
1 parent f149a5f commit 9dd90b1
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions src/components/FormattedDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,17 @@
-->

<template>
<NcDateTime v-if="timestamp"
:timestamp="timestamp"
ignore-seconds="true" />
<span :title="date">
{{ formattedDate }}
</span>
</template>

<script>
import { NcDateTime } from '@nextcloud/vue'
import moment from '@nextcloud/moment'
import { formatDate } from '../services/formatter.js'
export default {
name: 'FormattedDate',
components: {
NcDateTime,
},
props: {
date: {
type: String,
Expand All @@ -44,13 +39,12 @@ export default {
},
computed: {
timestamp() {
formattedDate() {
if (!this.date) {
return 0
return this.date
}
const m = moment(this.date)
return m.valueOf()
return formatDate(this.date)
},
},
}
Expand Down

0 comments on commit 9dd90b1

Please sign in to comment.