diff --git a/src/components/general/DateTimeSlider.vue b/src/components/general/DateTimeSlider.vue index 85cccd223..41b7c56a3 100644 --- a/src/components/general/DateTimeSlider.vue +++ b/src/components/general/DateTimeSlider.vue @@ -106,6 +106,7 @@ import { findDateIndex } from '@/lib/utils/findDateIndex' import VueSlider from 'vue-slider-component' import 'vue-slider-component/theme/antd.css' +import { useI18n } from 'vue-i18n' interface Properties { selectedDate?: Date @@ -139,6 +140,7 @@ const doFollowNow = ref(props.doFollowNow) let followNowIntervalTimer: ReturnType | null = null const hideLabel = ref(true) +const { d } = useI18n() onMounted(() => { if (props.doFollowNow) { @@ -245,7 +247,8 @@ const playButtonColor = computed(() => const dateString = computed(() => props.dates[dateIndex.value] - ? props.dates[dateIndex.value].toLocaleString() + ? // ? props.dates[dateIndex.value].toLocaleString() + d(props.dates[dateIndex.value], 'datetimeslider') : '', ) diff --git a/src/components/time-control/IntervalSelector.vue b/src/components/time-control/IntervalSelector.vue index 0a72753ae..6ce07cd1a 100644 --- a/src/components/time-control/IntervalSelector.vue +++ b/src/components/time-control/IntervalSelector.vue @@ -1,7 +1,10 @@