fix(admin): change timezone manager from admin when db is sql

This commit is contained in:
Johann Pinson 2018-06-20 16:49:21 +02:00
parent f44973ffd1
commit d9f5af24d5
2 changed files with 4 additions and 4 deletions

View File

@ -98,8 +98,8 @@ module.exports = strapi => {
schema: _.get(connection.settings, 'schema') || 'public',
port: _.get(connection.settings, 'port'),
socket: _.get(connection.settings, 'socketPath'),
ssl: _.get(connection.settings, 'ssl') || false
ssl: _.get(connection.settings, 'ssl') || false,
timezone: _.get(connection.settings, 'timezone') || 'utc',
},
debug: _.get(connection.options, 'debug') || false,
acquireConnectionTimeout: _.get(connection.options, 'acquireConnectionTimeout'),

View File

@ -53,9 +53,9 @@ class TableRow extends React.Component {
const date = value && isObject(value) && value._isAMomentObject === true ?
value :
moment(value);
moment.utc(value);
return date.utc().format('YYYY-MM-DD HH:mm:ss');
return date.format('YYYY-MM-DD HH:mm:ss');
}
case 'password':
return '••••••••';