From 196bad187dccbd75e34cabaac1f9092f2a767bab Mon Sep 17 00:00:00 2001 From: Lemuel Marquez Date: Thu, 22 Jul 2021 18:30:00 -0500 Subject: [PATCH] dia hora --- server/controller/PrimerSemestre/csv.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/controller/PrimerSemestre/csv.js b/server/controller/PrimerSemestre/csv.js index e109480..7397e8e 100644 --- a/server/controller/PrimerSemestre/csv.js +++ b/server/controller/PrimerSemestre/csv.js @@ -34,13 +34,14 @@ const get = async (body) => { nombre: res[i].nombre, carrera: res[i].Grupo.Carrera.carrera, grupo: res[i].Grupo.grupo, - horario: `${ + dia: `${ horario.date() < 10 ? '0' + horario.date() : horario.date() }/${ horario.month() + 1 < 10 ? '0' + (horario.month() + 1) : horario.month() + 1 - }/${horario.year()} ${ + }/${horario.year()}`, + hora: `${ horario.hour() < 10 ? '0' + horario.hour() : horario.hour() }:${ horario.minute() < 10 ? '0' + horario.minute() : horario.minute()