Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Mar 21, 2023
1 parent 9d7e658 commit 8dc735b
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 8dc735b

Please sign in to comment.