fechas con moment en reportes
This commit is contained in:
@@ -29,7 +29,7 @@ const gustavoBazPrada = async (body) => {
|
||||
nombre: res[i].Usuario.nombre,
|
||||
licenciatura: res[i].Carrera.carrera,
|
||||
correo: res[i].correo,
|
||||
fechaLiberacion: res[i].fechaLiberacion,
|
||||
fechaLiberacion: moment(res[i].fechaLiberacion),
|
||||
});
|
||||
try {
|
||||
fs.unlinkSync(path);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const fs = require('fs');
|
||||
const moment = require('moment');
|
||||
const { convertArrayToCSV } = require('convert-array-to-csv');
|
||||
const { Op } = require('sequelize');
|
||||
const validar = require('../../helper/validar');
|
||||
@@ -34,9 +35,9 @@ const reporte = async (body) => {
|
||||
nombre: res[i].Usuario.nombre,
|
||||
licenciatura: res[i].Carrera.carrera,
|
||||
correo: res[i].correo,
|
||||
fehcaInicio: res[i].fechaInicio,
|
||||
fechaFin: res[i].fechaFin,
|
||||
fechaLiberacion: res[i].fechaLiberacion,
|
||||
fechaInicio: moment(res[i].fechaInicio),
|
||||
fechaFin: moment(res[i].fechaFin),
|
||||
fechaLiberacion: moment(res[i].fechaLiberacion),
|
||||
institucion: res[i].Programa.institucion,
|
||||
dependencia: res[i].Programa.dependencia,
|
||||
programa: res[i].Programa.programa,
|
||||
|
||||
Reference in New Issue
Block a user