fix api registration to take into account new closed_registration date, cambia horario en premiados

This commit is contained in:
Germán Correa 2021-09-03 16:55:07 -03:00
parent ee1ee65a2c
commit 014eb89cb8
2 changed files with 11 additions and 9 deletions

View File

@ -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

View File

@ -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{