X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmodels%2Fanalytics_extracted_report.js;h=b88fa55fa8c773a790db9d45c54aa85de7a3c3fd;hb=903634fc494ad4b4cbb03bbae15556481571adc6;hp=8ee64a080ed35ccdf7b8414ddc2f71b8ba27bc7a;hpb=a7a17608f349df2adb5d19117e2f6b46ae156852;p=motion.git diff --git a/server/models/analytics_extracted_report.js b/server/models/analytics_extracted_report.js index 8ee64a0..b88fa55 100644 --- a/server/models/analytics_extracted_report.js +++ b/server/models/analytics_extracted_report.js @@ -13,14 +13,14 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.DATE, get: function() { // 'this' allows you to access attributes of the instance - return moment(this.getDataValue('startDate')).format("DD-MM-YYYY").toString(); + return moment(this.getDataValue('startDate')).format("DD-MM-YYYY"); } }, endDate: { type: DataTypes.DATE, get: function() { // 'this' allows you to access attributes of the instance - return moment(this.getDataValue('endDate')).format("DD-MM-YYYY").toString(); + return moment(this.getDataValue('endDate')).format("DD-MM-YYYY"); } }, status: { @@ -31,7 +31,7 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.DATE, get: function() { // 'this' allows you to access attributes of the instance - return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY").toString(); + return moment(this.getDataValue('createdAt')).format("DD-MM-YYYY"); } }, }, {