Fixed date failing for minute and hour date precision.
This commit is contained in:
@@ -66,10 +66,9 @@
|
||||
class="date"
|
||||
:class="{ nodate: !movie.date }"
|
||||
>{{ 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>
|
||||
}[movie.datePrecision] || (movie.effectiveDate.getFullYear() === currentYear ? 'MMM d' : 'MMM d, y')) }}</time>
|
||||
</div>
|
||||
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user