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 730d056
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 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,19 +16,18 @@
fill="var(--vp-c-text-2)"
/>
</svg>
<span>
{{ `${nowWithTZ.format("HH:mm")} (${nowWithTZ.format("UTC Z")})` }}
</span>
<!-- {{ `${nowWithTZ.format("HH:mm")} (${nowWithTZ.format("UTC Z")})` }} -->
</li>
</ul>
</template>

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

<style scoped module>
Expand Down

0 comments on commit 730d056

Please sign in to comment.