[Certs] Fix timezone error that caused dates to be off by 1 day
This commit is contained in:
parent
d70d1edbd6
commit
246bec540c
@ -184,7 +184,7 @@ export class CertificateService {
|
|||||||
certificate.curso = data.subjectId;
|
certificate.curso = data.subjectId;
|
||||||
certificate.codigo = await this.getNextRegisterCode(data.subjectId);
|
certificate.codigo = await this.getNextRegisterCode(data.subjectId);
|
||||||
certificate.fecha_actual = new Date();
|
certificate.fecha_actual = new Date();
|
||||||
certificate.fecha_inscripcion = new Date(data.date);
|
certificate.fecha_inscripcion = data.date as unknown as Date ; // new Date(data.date);
|
||||||
certificate.curso_nombre = subject.nombre;
|
certificate.curso_nombre = subject.nombre;
|
||||||
|
|
||||||
certificate.persona = person;
|
certificate.persona = person;
|
||||||
|
Loading…
Reference in New Issue
Block a user