From 014eb89cb8f51f3b619d40215089770639e0dc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Correa?= Date: Fri, 3 Sep 2021 16:55:07 -0300 Subject: [PATCH] fix api registration to take into account new closed_registration date, cambia horario en premiados --- data/conferencias.yml | 16 ++++++++-------- src/routes.php | 4 +++- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/data/conferencias.yml b/data/conferencias.yml index 44acb0d..a78a745 100644 --- a/data/conferencias.yml +++ b/data/conferencias.yml @@ -236,21 +236,21 @@ nombre: Iván Angiono afiliacion: CIEM-FAMAF, Córdoba, Argentina web: - start: 2021-09-14T14:00-0300 - end: 2021-09-14T15:00-0300 - - titulo: Charla Premiado 3 + start: 2021-09-16T14:00-0300 + end: 2021-09-16T15:00-0300 + - titulo: TBA abstract: TBA speaker: nombre: Luna Lomonaco afiliacion: IMPA, Río de Janeiro, Brasil web: - start: 2021-09-15T14:00-0300 - end: 2021-09-15T15:00-0300 - - titulo: Charla Premiado 4 + start: 2021-09-14T14:00-0300 + end: 2021-09-14T15:00-0300 + - titulo: TBA abstract: TBA speaker: nombre: Luis Núñez Betancourt afiliacion: CIMAT, Guanajuato, México web: - start: 2021-09-16T14:00-0300 - end: 2021-09-16T15:00-0300 + start: 2021-09-15T14:00-0300 + end: 2021-09-15T15:00-0300 diff --git a/src/routes.php b/src/routes.php index 66c776f..67897b5 100644 --- a/src/routes.php +++ b/src/routes.php @@ -317,7 +317,9 @@ $app->group('/api', function($app){ $messages = $this->flash; $data = $request->getParsedBody(); $db = $this->db; - if($this->settings['close_registration']){ + $hoy=strtotime(date("Y-m-d H:i:s")); + $fechaCierre = strtotime($this->settings['close_registration']); + if($hoy>$fechaCierre){ $messages->addMessageNow("submit-register-err", "Registration has benn closed"); } else{