forked from 0x2620/pandora
format dates as dates
This commit is contained in:
parent
7ac8fefcf4
commit
3a6bfa8946
1 changed files with 5 additions and 0 deletions
|
@ -716,6 +716,11 @@ pandora.ui.infoView = function(data) {
|
|||
var ret;
|
||||
if (key == 'year') {
|
||||
ret = formatLink(value, 'year');
|
||||
} else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) {
|
||||
ret = value ? Ox.formatDate(value,
|
||||
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
|
||||
true
|
||||
) : '';
|
||||
} else if (key == 'links') {
|
||||
ret = value.split(', ').map(function(link) {
|
||||
return '<a href="' + link + '">' + Ox.parseURL(link).host + '</a>';
|
||||
|
|
Loading…
Reference in a new issue