Поменял формат даты

This commit is contained in:
Alex committed 2023-12-29 11:53:01 +03:00
1 parent ac4b32ee8f
commit d92074edc4
1 file changed
+8 -2
+8 -2
View File
@@ -28,6 +28,12 @@
md=12
sm=12
>
<!-- <div class="d-flex">
<v-icon size="x-small" class="me-1" icon="mdi-account"/>
<p class="text-caption me-2">
{{splitname(news.author)}}
</p>
</div> -->
<v-icon size="x-small" class="me-1" icon="mdi-account"/>
<span class="text-caption me-2">
{{splitname(news.author)}}
@@ -111,7 +117,7 @@
>
Подробнее
</v-btn>
<span class="text-body-2 align-self-center">{{formatDate(news.cdate)}}</span>
<span class="text-caption align-self-center">{{formatDate(news.cdate)}}</span>
</v-col>
</v-row>
</v-card>
@@ -166,7 +172,7 @@ export default {
}
function formatDate(date) {
return moment(date).format('DD-MM-YYYY')
return moment(date).format('DD.MM.YYYY')
}
return {