1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update PostComponent, change timestamp format

This commit is contained in:
Daniel Supernault 2020-11-30 20:59:45 -07:00
parent 37c1f34e9d
commit e51665f6e3
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -245,7 +245,7 @@
</span> </span>
</div> </div>
<div class="timestamp pt-2 d-flex align-items-bottom justify-content-between"> <div class="timestamp pt-2 d-flex align-items-bottom justify-content-between">
<a v-bind:href="statusUrl" class="small text-muted"> <a v-bind:href="statusUrl" class="small text-muted" :title="status.created_at">
{{timestampFormat()}} {{timestampFormat()}}
</a> </a>
<span class="small text-muted text-capitalize cursor-pointer" v-on:click="visibilityModal">{{status.visibility}}</span> <span class="small text-muted text-capitalize cursor-pointer" v-on:click="visibilityModal">{{status.visibility}}</span>
@ -831,7 +831,7 @@ export default {
timestampFormat() { timestampFormat() {
let ts = new Date(this.status.created_at); let ts = new Date(this.status.created_at);
return ts.toDateString() + ' ' + ts.toLocaleTimeString(); return ts.toDateString();
}, },
fetchData() { fetchData() {