Accounting for date precision in scene and movie pages and tiles.

This commit is contained in:
2024-08-19 23:31:28 +02:00
parent 0cc9ee51e2
commit 1ea8e52ab1
6 changed files with 27 additions and 5 deletions

View File

@@ -109,12 +109,20 @@
<time
:datetime="scene.effectiveDate.toISOString()"
class="ellipsis compact-hide"
>{{ formatDate(scene.effectiveDate, 'MMMM d, y') }}</time>
>{{ formatDate(scene.effectiveDate, {
day: 'MMMM d, y',
month: 'MMMM y',
year: 'y',
}[scene.datePrecision]) }}</time>
<time
:datetime="scene.effectiveDate.toISOString()"
class="ellipsis compact-show"
>{{ formatDate(scene.effectiveDate, 'MMM d, y') }}</time>
>{{ formatDate(scene.effectiveDate, {
day: 'MMM d, y',
month: 'MMM y',
year: 'y',
}[scene.datePrecision]) }}</time>
</Link>
</div>