Explorar el Código

Update PostComponent, change timestamp format

Daniel Supernault hace 4 años
padre
commit
e51665f6e3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      resources/assets/js/components/PostComponent.vue

+ 2 - 2
resources/assets/js/components/PostComponent.vue

@@ -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() {