diff --git a/src/client/theme-default/components/VPDocFooterLastUpdated.vue b/src/client/theme-default/components/VPDocFooterLastUpdated.vue index b2f2ce345120..29b31be01064 100644 --- a/src/client/theme-default/components/VPDocFooterLastUpdated.vue +++ b/src/client/theme-default/components/VPDocFooterLastUpdated.vue @@ -8,7 +8,8 @@ const date = computed(() => new Date(page.value.lastUpdated!)) const isoDatetime = computed(() => date.value.toISOString()) const datetime = ref('') -// set time on mounted hook avoid hydration mismatch due to different time zones +// set time on mounted hook to avoid hydration mismatch due to +// possible difference in timezones between client and server onMounted(() => { watchEffect(() => { datetime.value = date.value.toLocaleString(lang.value)