Hopefully fixed an issue where formats didn't show
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
c180404e15
commit
20f681aa3c
|
@ -32,7 +32,7 @@ const crntTime = Date.now();
|
||||||
<span>
|
<span>
|
||||||
to get
|
to get
|
||||||
<code>
|
<code>
|
||||||
<span v-for="format in props.formats" :key="formats.findIndex(format)">
|
<span v-for="format in props.formats" :key="Math.floor(Math.random()*1000)">
|
||||||
{{Intl.DateTimeFormat(Intl.Locale, format).format(crntTime) + ' '}}
|
{{Intl.DateTimeFormat(Intl.Locale, format).format(crntTime) + ' '}}
|
||||||
</span>
|
</span>
|
||||||
</code>
|
</code>
|
||||||
|
|
|
@ -42,37 +42,37 @@ const navLinks = [
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
month: 'long',
|
month: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
}, {hour: '2-digit', minute: '2-digit'}]} dFormat="f" client:load />
|
}, {hour: '2-digit', minute: '2-digit'}]} dFormat="f" client:only />
|
||||||
<br />
|
<br />
|
||||||
<TimeFormat formats={[{
|
<TimeFormat formats={[{
|
||||||
weekday: 'long',
|
weekday: 'long',
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
month: 'long',
|
month: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
}, { hour: '2-digit', minute: '2-digit', }]} dFormat="F" client:load />
|
}, { hour: '2-digit', minute: '2-digit', }]} dFormat="F" client:only />
|
||||||
<br />
|
<br />
|
||||||
<TimeFormat formats={[{
|
<TimeFormat formats={[{
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
}]} dFormat="t" client:load />
|
}]} dFormat="t" client:only />
|
||||||
<br />
|
<br />
|
||||||
<TimeFormat formats={[{
|
<TimeFormat formats={[{
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
second: '2-digit',
|
second: '2-digit',
|
||||||
}]} dFormat="T" client:load />
|
}]} dFormat="T" client:only />
|
||||||
<br />
|
<br />
|
||||||
<TimeFormat formats={[{
|
<TimeFormat formats={[{
|
||||||
day: '2-digit',
|
day: '2-digit',
|
||||||
month: '2-digit',
|
month: '2-digit',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
}]} dFormat="d" client:load />
|
}]} dFormat="d" client:only />
|
||||||
<br />
|
<br />
|
||||||
<TimeFormat formats={[{
|
<TimeFormat formats={[{
|
||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
month: 'long',
|
month: 'long',
|
||||||
year: 'numeric',
|
year: 'numeric',
|
||||||
}]} dFormat="D" client:load />
|
}]} dFormat="D" client:only />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
Loading…
Reference in a new issue