Frontend: Improve date strings in tables

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-04 19:23:38 +02:00
parent c882b56f82
commit 1a3966e798
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@
</span>
</td>
<td class="hidden-sm-and-down">{{ props.item.CameraMake }} {{ props.item.CameraModel }}</td>
<td :title="props.item.TakenAt | luxon:format('dd/MM/yyyy hh:mm:ss')">{{ props.item.TakenAt | luxon:format('dd/MM/yyyy') }}</td>
<td :title="props.item.TakenAt | luxon:format('dd/MM/yyyy HH:mm:ss')">{{ props.item.TakenAt | luxon:locale }}</td>
<td><v-btn icon small flat :ripple="false"
class="p-photo-like"
@click.stop.prevent="props.item.toggleLike()">

View file

@ -107,7 +107,7 @@
const time = d.Time ? d.Time : d;
return DateTime.fromISO(time).toFormat('dd/MM/yyyy hh:mm:ss');
return DateTime.fromISO(time).toLocaleString(DateTime.DATE_FULL);
},
load() {
Account.search({count: 100}).then(r => this.results = r.models);