mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
localized production year of search result
This commit is contained in:
parent
bcdc67b522
commit
b0b382ca78
@ -22,6 +22,7 @@ import '../cardbuilder/card.scss';
|
|||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
import template from './itemidentifier.template.html';
|
import template from './itemidentifier.template.html';
|
||||||
|
import datetime from '../../scripts/datetime';
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
@ -166,7 +167,7 @@ import template from './itemidentifier.template.html';
|
|||||||
lines.push(escapeHtml(identifyResult.Name));
|
lines.push(escapeHtml(identifyResult.Name));
|
||||||
|
|
||||||
if (identifyResult.ProductionYear) {
|
if (identifyResult.ProductionYear) {
|
||||||
lines.push(identifyResult.ProductionYear);
|
lines.push(datetime.toLocaleString(identifyResult.ProductionYear));
|
||||||
}
|
}
|
||||||
|
|
||||||
let resultHtml = lines.join('<br/>');
|
let resultHtml = lines.join('<br/>');
|
||||||
|
Loading…
Reference in New Issue
Block a user