Date formatting
Этот коммит содержится в:
родитель
f75f12e940
Коммит
0d94021d2b
@ -1,5 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { fade } from 'svelte/transition'
|
import { fade } from 'svelte/transition'
|
||||||
|
import { utcFormat } from 'd3-time-format';
|
||||||
export let cardData;
|
export let cardData;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -16,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<p>{cardData.attribution_date}</p>
|
<p>{utcFormat('%B %d, %Y')(cardData.attribution_date)}</p>
|
||||||
<p>{cardData.short_description}</p>
|
<p>{cardData.short_description}</p>
|
||||||
<p>
|
<p>
|
||||||
<span class="tag is-info">{cardData.source}</span>
|
<span class="tag is-info">{cardData.source}</span>
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import { utcFormat } from 'd3-time-format';
|
||||||
export let cases
|
export let cases
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -18,7 +19,7 @@
|
|||||||
{#if attrCase.show}
|
{#if attrCase.show}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{attrCase.short_description}</td>
|
<td>{attrCase.short_description}</td>
|
||||||
<td>{attrCase.attribution_date}</td>
|
<td>{utcFormat('%B %d, %Y')(attrCase.attribution_date)}</td>
|
||||||
<td>{attrCase.source}</td>
|
<td>{attrCase.source}</td>
|
||||||
<td>{attrCase.source_category}</td>
|
<td>{attrCase.source_category}</td>
|
||||||
<td>{attrCase.actor_nation}</td>
|
<td>{attrCase.actor_nation}</td>
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user