mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 15:19:00 +00:00
fix(admin): change timezone manager from admin when db is sql
This commit is contained in:
parent
f44973ffd1
commit
d9f5af24d5
@ -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'),
|
||||
|
||||
@ -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 '••••••••';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user