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

@@ -75,7 +75,11 @@
:datetime="scene.effectiveDate.toISOString()"
class="date"
:class="{ nodate: !scene.date }"
>{{ format(scene.effectiveDate, 'MMM d, y') }}</time>
>{{ format(scene.effectiveDate, {
day: 'MMM d, y',
month: 'MMM y',
year: 'y',
}[scene.datePrecision]) }}</time>
</Link>
</div>