[Certs] Fix timezone error that caused dates to be off by 1 day

master
Araozu 2023-08-07 10:50:30 -05:00
parent d70d1edbd6
commit 246bec540c
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export class CertificateService {
certificate.curso = data.subjectId;
certificate.codigo = await this.getNextRegisterCode(data.subjectId);
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.persona = person;