Fixed date failing for minute and hour date precision.
This commit is contained in:
parent
0ca847a878
commit
80d6216790
|
@ -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
|
||||
|
|
|
@ -76,10 +76,9 @@
|
|||
class="date"
|
||||
:class="{ nodate: !scene.date }"
|
||||
>{{ format(scene.effectiveDate, {
|
||||
day: 'MMM d, y',
|
||||
month: 'MMM y',
|
||||
year: 'y',
|
||||
}[scene.datePrecision]) }}</time>
|
||||
}[scene.datePrecision] || 'MMM d, y') }}</time>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -91,10 +91,9 @@
|
|||
:datetime="movie.effectiveDate.toISOString()"
|
||||
class="date ellipsis"
|
||||
>{{ formatDate(movie.effectiveDate, {
|
||||
day: 'MMMM d, y',
|
||||
month: 'MMMM y',
|
||||
year: 'y',
|
||||
}[movie.datePrecision]) }}</time>
|
||||
}[movie.datePrecision] || 'MMMM d, y') }}</time>
|
||||
</div>
|
||||
|
||||
<div class="header">
|
||||
|
|
|
@ -110,10 +110,9 @@
|
|||
:datetime="scene.effectiveDate.toISOString()"
|
||||
class="ellipsis compact-hide"
|
||||
>{{ formatDate(scene.effectiveDate, {
|
||||
day: 'MMMM d, y',
|
||||
month: 'MMMM y',
|
||||
year: 'y',
|
||||
}[scene.datePrecision]) }}</time>
|
||||
}[scene.datePrecision] || 'MMMM d, y') }}</time>
|
||||
|
||||
<time
|
||||
:datetime="scene.effectiveDate.toISOString()"
|
||||
|
|
Loading…
Reference in New Issue