display time
This commit is contained in:
parent
c4c0a037ce
commit
8391612d58
1 changed files with 13 additions and 4 deletions
|
@ -594,10 +594,19 @@ pandora.ui.infoView = function(data) {
|
||||||
function formatValue(key, value) {
|
function formatValue(key, value) {
|
||||||
var ret;
|
var ret;
|
||||||
if (key == 'date' && (!value || value.split('-').length < 4)) {
|
if (key == 'date' && (!value || value.split('-').length < 4)) {
|
||||||
ret = value ? Ox.formatDate(value,
|
if (!value) {
|
||||||
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
|
ret = ''
|
||||||
true
|
} else if (Ox.contains(value, ':') && value.split('-').length == 3) {
|
||||||
) : '';
|
ret = Ox.formatDate(value,
|
||||||
|
['', '', '%B %e, %Y %H:%M', '%B %e, %Y %H:%M:%S'][value.split(':').length],
|
||||||
|
false
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
ret = Ox.formatDate(value,
|
||||||
|
['', '%Y', '%B %Y', '%B %e, %Y'][value.split('-').length],
|
||||||
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
} else if (listKeys.indexOf(key) > -1) {
|
} else if (listKeys.indexOf(key) > -1) {
|
||||||
ret = value.split(', ');
|
ret = value.split(', ');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue