lrf před 2 roky
rodič
revize
700c879726
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      app/service/statistics/admin.js

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

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