mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
"Invalid Date" fix for jobs page
returning an empty string for when the date format filter receives a null object
This commit is contained in:
@@ -5,8 +5,13 @@
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
function longDateFilter(moment, input) {
|
function longDateFilter(moment, input) {
|
||||||
var date = moment(input);
|
var date;
|
||||||
return date.format('l LTS');
|
if(input === null){
|
||||||
|
return "";
|
||||||
|
}else {
|
||||||
|
date = moment(input);
|
||||||
|
return date.format('l LTS');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
angular.module('longDateFilter', [])
|
angular.module('longDateFilter', [])
|
||||||
|
|||||||
Reference in New Issue
Block a user