correct date format

parent 51256f52
......@@ -17,7 +17,7 @@ exports.getAllApplications = function() {
exports.setApplicationStatusToCompleted = function(verfahrensId) {
return new Promise(function(resolve, reject) {
const filter = {verfahrensId: verfahrensId};
const update = {statusId: 'bearbeitet', statusDescription: 'Ihr Antrag wurde bearbeitet', statusLastChangeDate: new Date().toLocaleDateString('de-DE')};
const update = {statusId: 'bearbeitet', statusDescription: 'Ihr Antrag wurde bearbeitet', statusLastChangeDate: new Date().toISOString()};
const applicationRecord = Application.findOneAndUpdate(filter, update, function (err, result) {
return result
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment