Kaynağa Gözat

edited date display from ISO to LocaleDate

tags/0.9.0
Alej 4 yıl önce
ebeveyn
işleme
85b795048b
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      vue-theme/src/components/card.vue

+ 1
- 1
vue-theme/src/components/card.vue Dosyayı Görüntüle

@@ -10,7 +10,7 @@
10 10
         .f-col.w-max
11 11
             router-link(:to="`/${type}/${content.slug}`")
12 12
                 h1.t-up.t-cntr.t-b {{ content.title }}
13
-            p(v-if="content.end") {{ new Date(content.start * 1000).toISOString().split('T')[0] }} – {{ new Date(content.end * 1000).toISOString().split('T')[0] }}
13
+            p(v-if="content.end") {{ new Date(content.start * 1000).toLocaleDateString() }} – {{ new Date(content.end * 1000).toLocaleDateString() }}
14 14
             p {{ content.excerpt }}
15 15
 </template>
16 16
 

Loading…
İptal
Kaydet