Add support for server-specific timezone and date format settings
This commit is contained in:
parent
ddbbc543c2
commit
c67a1df11d
51 changed files with 326 additions and 168 deletions
|
@ -41,7 +41,7 @@ module.exports = {
|
|||
typeCast(field, next) {
|
||||
if (field.type === 'DATETIME') {
|
||||
const val = field.string();
|
||||
return val != null ? moment(val).format('YYYY-MM-DD HH:mm:ss') : null;
|
||||
return val != null ? moment.utc(val).format('YYYY-MM-DD HH:mm:ss') : null;
|
||||
}
|
||||
|
||||
return next();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue