aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/FileEntry.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components/FileEntry.vue')
-rw-r--r--apps/files/src/components/FileEntry.vue17
1 files changed, 2 insertions, 15 deletions
diff --git a/apps/files/src/components/FileEntry.vue b/apps/files/src/components/FileEntry.vue
index 31400b95dfc..461055bde7f 100644
--- a/apps/files/src/components/FileEntry.vue
+++ b/apps/files/src/components/FileEntry.vue
@@ -20,7 +20,7 @@
-
-->
- <template>
+<template>
<tr :class="{'files-list__row--dragover': dragover, 'files-list__row--loading': isLoading}"
data-cy-files-list-row
:data-cy-files-list-row-fileid="fileid"
@@ -83,7 +83,7 @@
class="files-list__row-mtime"
data-cy-files-list-row-mtime
@click="openDetailsIfAvailable">
- <NcDateTime :timestamp="mDateTime"/>
+ <NcDateTime :timestamp="this.source.mtime" :ignore-seconds="true" />
</td>
<!-- View columns -->
@@ -257,19 +257,6 @@ export default Vue.extend({
color: `color-mix(in srgb, var(--color-main-text) ${ratio}%, var(--color-text-maxcontrast))`,
}
},
-
- mtime() {
- if (this.source.mtime) {
- return moment(this.source.mtime).fromNow()
- }
- return t('files_trashbin', 'A long time ago')
- },
- mDateTime() {
- if (this.source.mtime) {
- return moment(this.source.mtime)
- }
- return t('files_trashbin', 'A long time ago')
- },
mtimeOpacity() {
const maxOpacityTime = 31 * 24 * 60 * 60 * 1000 // 31 days