reverse date
This commit is contained in:
parent
ba4ff45eac
commit
b7aa264e10
1 changed files with 3 additions and 0 deletions
|
@ -733,6 +733,9 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
if (key == 'year') {
|
if (key == 'year') {
|
||||||
ret = formatLink(value, 'year');
|
ret = formatLink(value, 'year');
|
||||||
} else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) {
|
} else if (['releasedate', 'dateofcensorcertificate'].indexOf(key) > -1) {
|
||||||
|
if (/\d{2}-\d{2}-\d{4}/.test(value)) {
|
||||||
|
value = Ox.reverse(value.split('-')).join('-')
|
||||||
|
}
|
||||||
ret = value ? Ox.formatDate(value,
|
ret = value ? Ox.formatDate(value,
|
||||||
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
|
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue