lrf hace 2 años
padre
commit
baf0c3a7a8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/service/statistics/admin.js

+ 2 - 1
app/service/statistics/admin.js

@@ -320,7 +320,8 @@ class AdminService extends CrudService {
       result = [ start, end ];
     } else if (type.includes('year')) {
       const start = moment().startOf('year').format(this.tf);
-      const end = moment(start).add(1, 'year').format(this.tf);
+      const end = moment(start).add(1, 'year').subtract(1, 'day')
+        .format(this.tf);
       result = [ start, end ];
     }
     return result;