I'm facing an issue where the filter I developed is functioning properly on Chrome but not on Firefox. I am puzzled as to why this might be happening.
myApp.filter('dateCustom', [ '$filter', function ($filter) {
return function (input) {
// input => 2014-05-13 15:04:48
if(angular.isDefined(input)){
var d = new Date(input);
var time = d.getTime();
return $filter('date')(time,'dd/MM/yyyy');
}
}
}]);
HTML :
<span> {{ project.date_created_at | dateCustom }} </span>
Chrome
Firefox