Actualizacion logica fecha fin de suscripcion

Seteo de hora final a las 10 am
parent d320b046
......@@ -142,6 +142,7 @@ class PagosExternosController extends AbstractController {
$fechaInicioKushki = new \DateTime();
$fechaInicioKushki->modify('+1 days');
$fecha = new \DateTime();
$fecha->setTime(10, 00);
$periodo = Utiles::getParametroConfiguracion("periodoSuscripcion", $em);
if($periodo == "daily"){
$fechaUnaSemana = $fecha->modify('+1 days');
......
......@@ -383,6 +383,7 @@ class UtilidadesController extends AbstractController {
$json = new JsonResponse();
$fechaActual = new \DateTime();
$fecha = new \DateTime();
$fecha->setTime(10, 00);
if($periodo == "daily"){
$fechaUnaSemana = $fecha->modify('+1 days');
}else if($periodo == "weekly"){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment