Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15799 | Rev 15806 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15799 Rev 15800
Línea 95... Línea 95...
95
        $startDate = $this->params()->fromQuery('startDate');
95
        $startDate = $this->params()->fromQuery('startDate');
96
        if (empty($startDate)) {
96
        if (empty($startDate)) {
97
            $startDate = date('Y-m-d');
97
            $startDate = date('Y-m-d');
98
        }
98
        }
Línea 99... Línea -...
99
 
-
 
100
 
99
 
101
        $endDate = $this->params()->fromQuery('endDate');
100
        $endDate = $this->params()->fromQuery('endDate');
102
        if (empty($endDate)) {
101
        if (empty($endDate)) {
103
            $endDate = date('Y-m-d');
102
            $endDate = date('Y-m-d');
-
 
103
        }
-
 
104
 
-
 
105
        $startDate = '2023-03-01';
-
 
106
        $endDate = '2023-03-19';
-
 
107
 
-
 
108
        $dtStartDate = \DateTime::createFromFormat('Y-n-d', $startDate);
-
 
109
        $dtEndDate = \DateTime::createFromFormat('Y-n-d', $endDate);
104
        }
110
 
105
        return new JsonModel([
111
        return new JsonModel([
106
            'success' => true,
112
            'success' => true,
107
            'message' => $endDate
113
            'message' => $dtStartDate
108
        ]);
114
        ]);
Línea 109... Línea 115...
109
        //}
115
        //}
110
 
116