Accounting for date precision in scene and movie pages and tiles.
This commit is contained in:
@@ -65,7 +65,11 @@
|
||||
:datetime="movie.effectiveDate.toISOString()"
|
||||
class="date"
|
||||
:class="{ nodate: !movie.date }"
|
||||
>{{ format(movie.effectiveDate, movie.effectiveDate.getFullYear() === currentYear ? 'MMM d' : 'MMM d, y') }}</time>
|
||||
>{{ format(movie.effectiveDate, {
|
||||
day: movie.effectiveDate.getFullYear() === currentYear ? 'MMM d' : 'MMM d, y',
|
||||
month: movie.effectiveDate.getFullYear() === currentYear ? 'MMM' : 'MMM y',
|
||||
year: 'y',
|
||||
}[movie.datePrecision]) }}</time>
|
||||
</div>
|
||||
|
||||
<a
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user