localized production year of search result

This commit is contained in:
Hadi Charara 2022-07-03 18:54:28 -04:00
parent bcdc67b522
commit b0b382ca78

View File

@ -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/>');