Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
64ff569634
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      resources/assets/js/components/PostComponent.vue

+ 5 - 1
resources/assets/js/components/PostComponent.vue

@@ -209,7 +209,7 @@
               </div>
               <div class="timestamp">
                 <a v-bind:href="statusUrl" class="small text-muted">
-                  November 1, 2018
+                  {{timestampFormat()}}
                 </a>
               </div>
             </div>
@@ -303,6 +303,10 @@ export default {
       pixelfed.hydrateLikes();
     },
     methods: {
+      timestampFormat() {
+          let ts = new Date(this.status.created_at);
+          return ts.toDateString();
+      },
       fetchData() {
           let url = '/api/v2/profile/'+this.statusUsername+'/status/'+this.statusId;
           axios.get(url)