omassot hace 6 años
padre
commit
51f75df185
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      js/app.js

+ 3 - 3
js/app.js

@@ -598,14 +598,14 @@ app.controller('mainController', function($scope, $detection, $http, $mdSidenav,
   };
 
   var formatDate = function(value) {
-	    if (!value || value === 'Invalid date') {
-	        return moment();
+	  if (!value || value === 'Invalid date') {
+	        return moment('2025-12-31', 'YYYY-MM-DD');
 	      }
       if ($scope.results.ftth.date_abonnement_prev.match(/\d{2}\/\d{2}\/\d{2}/)) {
     	  return moment(value, 'DD/MM/YY');
         } else {
           return moment(value, 'YYYY-MM-DD');
-        }
+      }
   };
 
   var getFullAddress = function(callback) {