Frontend: Improve date strings in tables
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
c882b56f82
commit
1a3966e798
|
@ -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()">
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue