Compare commits

...

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian b09b18ecd8 0.27.5 2024-08-20 02:43:25 +02:00
DebaucheryLibrarian 80d6216790 Fixed date failing for minute and hour date precision. 2024-08-20 02:43:23 +02:00
6 changed files with 7 additions and 11 deletions

View File

@ -66,10 +66,9 @@
class="date" class="date"
:class="{ nodate: !movie.date }" :class="{ nodate: !movie.date }"
>{{ format(movie.effectiveDate, { >{{ format(movie.effectiveDate, {
day: movie.effectiveDate.getFullYear() === currentYear ? 'MMM d' : 'MMM d, y',
month: movie.effectiveDate.getFullYear() === currentYear ? 'MMM' : 'MMM y', month: movie.effectiveDate.getFullYear() === currentYear ? 'MMM' : 'MMM y',
year: 'y', year: 'y',
}[movie.datePrecision]) }}</time> }[movie.datePrecision] || (movie.effectiveDate.getFullYear() === currentYear ? 'MMM d' : 'MMM d, y')) }}</time>
</div> </div>
<a <a

View File

@ -76,10 +76,9 @@
class="date" class="date"
:class="{ nodate: !scene.date }" :class="{ nodate: !scene.date }"
>{{ format(scene.effectiveDate, { >{{ format(scene.effectiveDate, {
day: 'MMM d, y',
month: 'MMM y', month: 'MMM y',
year: 'y', year: 'y',
}[scene.datePrecision]) }}</time> }[scene.datePrecision] || 'MMM d, y') }}</time>
</Link> </Link>
</div> </div>

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{ {
"name": "traxxx-web", "name": "traxxx-web",
"version": "0.27.4", "version": "0.27.5",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.27.4", "version": "0.27.5",
"dependencies": { "dependencies": {
"@brillout/json-serializer": "^0.5.8", "@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5", "@dicebear/collection": "^7.0.5",

View File

@ -78,5 +78,5 @@
"postcss-custom-media": "^10.0.2", "postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2" "postcss-nesting": "^12.0.2"
}, },
"version": "0.27.4" "version": "0.27.5"
} }

View File

@ -91,10 +91,9 @@
:datetime="movie.effectiveDate.toISOString()" :datetime="movie.effectiveDate.toISOString()"
class="date ellipsis" class="date ellipsis"
>{{ formatDate(movie.effectiveDate, { >{{ formatDate(movie.effectiveDate, {
day: 'MMMM d, y',
month: 'MMMM y', month: 'MMMM y',
year: 'y', year: 'y',
}[movie.datePrecision]) }}</time> }[movie.datePrecision] || 'MMMM d, y') }}</time>
</div> </div>
<div class="header"> <div class="header">

View File

@ -110,10 +110,9 @@
:datetime="scene.effectiveDate.toISOString()" :datetime="scene.effectiveDate.toISOString()"
class="ellipsis compact-hide" class="ellipsis compact-hide"
>{{ formatDate(scene.effectiveDate, { >{{ formatDate(scene.effectiveDate, {
day: 'MMMM d, y',
month: 'MMMM y', month: 'MMMM y',
year: 'y', year: 'y',
}[scene.datePrecision]) }}</time> }[scene.datePrecision] || 'MMMM d, y') }}</time>
<time <time
:datetime="scene.effectiveDate.toISOString()" :datetime="scene.effectiveDate.toISOString()"