Skip to content
Snippets Groups Projects
Commit 1b7aca5c authored by ems19's avatar ems19
Browse files

Add new Data Format

parent da0d00ca
No related branches found
No related tags found
4 merge requests!379homologa -> master,!378dev -> homologa,!375Prd migration,!374Prd migration
......@@ -114,7 +114,10 @@ activityApp.get('/:id', (req, res, next) => {
res.statusCode = 404;
res.json({ msg: "A atividade não está cadastrada" });
} else {
req.result = act.toJSON();
let actJSON = act.toJSON();
actJSON.date = actJSON.date.toLocaleDateString("en-GB");
actJSON.date_headline = actJSON.date_headline.toLocaleDateString("en-GB");
req.result = actJSON;
next();
}
}).catch(function (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment