Skip to content

Commit

Permalink
test: locks the test timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Aug 15, 2024
1 parent 2a1ee72 commit 1007b39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/yun/pages/posts/date.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ toc: false

<TestFormatDate date="2023-07-19T00:00:00+08:00" format="EEEE, d MMMM yyyy" />

<TestFormatDate id="text-time-format-1" date="2023-07-19T00:00:00+08:00" format="yyyyMMdd" timezone="Asia/Shanghai" />
<TestFormatDate id="text-time-format-1" date="2023-07-19T00:00:00+08:00" format="yyyyMMdd" :options="{ timeZone: 'Asia/Shanghai' }" />

<TestFormatDate :date="1722589089" format="yyyyMMdd" />

<TestFormatDate id="text-time-format-2" date="2021.3.1 12:00" format="yyyyMMddHHmmss" timezone="Asia/Shanghai" />
<TestFormatDate id="text-time-format-2" date="2021.3.1 12:00" format="yyyyMMddHHmmss" :options="{ timeZone: 'Asia/Shanghai' }" />

<TestFormatDate format="yyMMdd" />

<TestFormatDate date="2021/3/1 12:00" format="yyyy/MM/dd" />

<TestFormatDate id="text-time-format-3" date="2021-12-03 1:07:23" format="yyyy/MM/dd HH:mm" timezone="Asia/Shanghai" />
<TestFormatDate id="text-time-format-3" date="2021-12-03 1:07:23" format="yyyy/MM/dd HH:mm" :options="{ timeZone: 'Asia/Shanghai' }" />

<TestFormatDate format="X" />

Expand Down

0 comments on commit 1007b39

Please sign in to comment.