fixup 5a07bbb1: parse ISO date strings

#319
This commit is contained in:
tophf 2017-12-29 17:39:02 +03:00
parent a0b2d0ef68
commit 5ac3662699

View File

@ -200,7 +200,7 @@ function tWordBreak(text) {
function formatDate(date) { function formatDate(date) {
return !date ? '' : tryCatch(() => { return !date ? '' : tryCatch(() => {
const newDate = new Date(parseInt(date)); const newDate = new Date(Number(date) || date);
const string = newDate.toLocaleDateString([t.cache.browserUIlanguage, 'en'], { const string = newDate.toLocaleDateString([t.cache.browserUIlanguage, 'en'], {
day: '2-digit', day: '2-digit',
month: 'short', month: 'short',