Commit aceeadda authored by Hsinli's avatar Hsinli

addd

parent fdb3d4d6
Pipeline #19887 passed with stage
in 1 minute 12 seconds
......@@ -27,7 +27,7 @@ module.exports = app => {
type: DATE,
get() {
const date = this.getDataValue('source_time');
return date;
return date ? moment(date).format('YYYY-MM-DD HH:mm:ss') : undefined;
},
},
content: {
......@@ -102,9 +102,9 @@ module.exports = app => {
},
},
}, {
timestamps: false,
tableName: 'cd_news',
});
timestamps: false,
tableName: 'cd_news',
});
return CdNews;
......
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