Skip to content

Commit

Permalink
debug: hydration mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Octobug committed Nov 15, 2023
1 parent e7a0f63 commit 1c9e118
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .vitepress/theme/components/ProfileExtra.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
fill="var(--vp-c-text-2)"
/>
</svg>
<span>{{ location }}</span>
{{ location }}
</li>
<li :class="$style.extraitem">
<svg viewBox="0 0 16 16">
Expand All @@ -16,9 +16,7 @@
fill="var(--vp-c-text-2)"
/>
</svg>
<span>
{{ `${nowWithTZ.format("HH:mm")} (${nowWithTZ.format("UTC Z")})` }}
</span>
{{ `${hourMinute} (${utcz})` }}
</li>
</ul>
</template>
Expand All @@ -29,6 +27,8 @@ import { useData } from "vitepress";
const { theme } = useData();
const { location, timezone } = theme.value;
const nowWithTZ = moment().tz(timezone);
const hourMinute: string = nowWithTZ.format("HH:mm");
const utcz: string = nowWithTZ.format("UTC Z");
</script>

<style scoped module>
Expand Down

0 comments on commit 1c9e118

Please sign in to comment.