diff --git a/assets/vue/components/assignments/TeacherAssignmentList.vue b/assets/vue/components/assignments/TeacherAssignmentList.vue
index 5b2390fc37..9ccef72423 100644
--- a/assets/vue/components/assignments/TeacherAssignmentList.vue
+++ b/assets/vue/components/assignments/TeacherAssignmentList.vue
@@ -30,7 +30,7 @@
field="sentDate"
>
- {{ useAbbreviatedDatetime(slotProps.data.sentDate) }}
+ {{ abbreviatedDatetime(slotProps.data.sentDate) }}
- {{ useAbbreviatedDatetime(slotProps.data.assignment.expiresOn) }}
+ {{ abbreviatedDatetime(slotProps.data.assignment.expiresOn) }}
@@ -114,7 +114,7 @@ import { onMounted, reactive, ref, watch } from "vue"
import { useI18n } from "vue-i18n"
import cStudentPublicationService from "../../services/cstudentpublication"
import { useCidReq } from "../../composables/cidReq"
-import { useAbbreviatedDatetime } from "../../composables/formatDate"
+import { useFormatDate } from "../../composables/formatDate"
import BaseTag from "../basecomponents/BaseTag.vue"
import BaseButton from "../basecomponents/BaseButton.vue"
import { RESOURCE_LINK_DRAFT, RESOURCE_LINK_PUBLISHED } from "../resource_links/visibility"
@@ -137,6 +137,8 @@ const notification = useNotification()
const confirm = useConfirm()
+const { abbreviatedDatetime } = useFormatDate()
+
const sortFields = ref([{ field: "sentDate", order: -1 }])
const loadParams = reactive({
page: 1,
diff --git a/assets/vue/components/ccalendarevent/CCalendarEventInfo.vue b/assets/vue/components/ccalendarevent/CCalendarEventInfo.vue
index 62f6b6c723..20a4f128cf 100644
--- a/assets/vue/components/ccalendarevent/CCalendarEventInfo.vue
+++ b/assets/vue/components/ccalendarevent/CCalendarEventInfo.vue
@@ -2,11 +2,11 @@