fix api registration to take into account new closed_registration date, cambia horario en premiados
This commit is contained in:
parent
ee1ee65a2c
commit
014eb89cb8
@ -236,21 +236,21 @@
|
|||||||
nombre: Iván Angiono
|
nombre: Iván Angiono
|
||||||
afiliacion: CIEM-FAMAF, Córdoba, Argentina
|
afiliacion: CIEM-FAMAF, Córdoba, Argentina
|
||||||
web:
|
web:
|
||||||
start: 2021-09-14T14:00-0300
|
start: 2021-09-16T14:00-0300
|
||||||
end: 2021-09-14T15:00-0300
|
end: 2021-09-16T15:00-0300
|
||||||
- titulo: Charla Premiado 3
|
- titulo: TBA
|
||||||
abstract: TBA
|
abstract: TBA
|
||||||
speaker:
|
speaker:
|
||||||
nombre: Luna Lomonaco
|
nombre: Luna Lomonaco
|
||||||
afiliacion: IMPA, Río de Janeiro, Brasil
|
afiliacion: IMPA, Río de Janeiro, Brasil
|
||||||
web:
|
web:
|
||||||
start: 2021-09-15T14:00-0300
|
start: 2021-09-14T14:00-0300
|
||||||
end: 2021-09-15T15:00-0300
|
end: 2021-09-14T15:00-0300
|
||||||
- titulo: Charla Premiado 4
|
- titulo: TBA
|
||||||
abstract: TBA
|
abstract: TBA
|
||||||
speaker:
|
speaker:
|
||||||
nombre: Luis Núñez Betancourt
|
nombre: Luis Núñez Betancourt
|
||||||
afiliacion: CIMAT, Guanajuato, México
|
afiliacion: CIMAT, Guanajuato, México
|
||||||
web:
|
web:
|
||||||
start: 2021-09-16T14:00-0300
|
start: 2021-09-15T14:00-0300
|
||||||
end: 2021-09-16T15:00-0300
|
end: 2021-09-15T15:00-0300
|
||||||
|
@ -317,7 +317,9 @@ $app->group('/api', function($app){
|
|||||||
$messages = $this->flash;
|
$messages = $this->flash;
|
||||||
$data = $request->getParsedBody();
|
$data = $request->getParsedBody();
|
||||||
$db = $this->db;
|
$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");
|
$messages->addMessageNow("submit-register-err", "Registration has benn closed");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user