From 0d8356c18a3c1799a7d86b508493c3d2eed79959 Mon Sep 17 00:00:00 2001 From: Sanasol Date: Sat, 21 Apr 2018 21:10:38 +0300 Subject: [PATCH] date display format --- web/src/components/LessonsAdmin.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/web/src/components/LessonsAdmin.vue b/web/src/components/LessonsAdmin.vue index 078efd2f..ce503646 100644 --- a/web/src/components/LessonsAdmin.vue +++ b/web/src/components/LessonsAdmin.vue @@ -4,18 +4,18 @@
- -
-
{{lesson.fields.date}} // {{ lesson.fields.title }}
+
{{ moment(lesson.fields.date).format("dd, D MMM") }} // {{ lesson.fields.title }}
{{ lesson.fields.short_description }}
@@ -47,12 +47,20 @@ // import Draggable from 'vuedraggable'; import {showNotification} from "../js/modules/notification"; // import createHistory from "history/createBrowserHistory"; - // import moment from 'moment' + import moment from 'moment' // import _ from 'lodash' + moment.locale('ru'); export default { name: "leessons-admin", props: ["lessons"], + mounted() { + }, + data() { + return { + moment: moment + } + }, methods: { addLesson() { window.location = '/course/create/live';