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 0d40c27
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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>
<!-- <span>{{ location }}</span> -->
</li>
<li :class="$style.extraitem">
<svg viewBox="0 0 16 16">
Expand All @@ -16,19 +16,19 @@
fill="var(--vp-c-text-2)"
/>
</svg>
<span>
<!-- <span>
{{ `${nowWithTZ.format("HH:mm")} (${nowWithTZ.format("UTC Z")})` }}
</span>
</span> -->
</li>
</ul>
</template>

<script lang="ts" setup>
import moment from "moment-timezone";
import { useData } from "vitepress";
const { theme } = useData();
const { location, timezone } = theme.value;
const nowWithTZ = moment().tz(timezone);
// import moment from "moment-timezone";
// import { useData } from "vitepress";
// const { theme } = useData();
// const { location, timezone } = theme.value;
// const nowWithTZ = moment().tz(timezone);
</script>

<style scoped module>
Expand Down

0 comments on commit 0d40c27

Please sign in to comment.