mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
Fix snowflakes being rounded when querying the database
This commit is contained in:
parent
d55bf80158
commit
b5b71bcf04
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ module.exports = {
|
|||
database: process.env.DB_DATABASE,
|
||||
charset: 'utf8mb4',
|
||||
timezone: 'UTC',
|
||||
supportBigNumbers: true,
|
||||
bigNumberStrings: true,
|
||||
dateStrings: true,
|
||||
typeCast(field, next) {
|
||||
if (field.type === 'DATETIME') {
|
||||
return moment(field.string()).format('YYYY-MM-DD HH:mm:ss');
|
||||
|
|
Loading…
Add table
Reference in a new issue