3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 20:35:02 +00:00

Switch from node-mariasql to mysql2

Node-mariasql returned dates in an incorrect timezone, and the project
doesn't seem to be actively maintained. Switching to mysql2 fixes the issue.
This commit is contained in:
Dragory 2018-08-02 00:48:48 +03:00
parent ef61eae2ec
commit 94c8e1cf43
4 changed files with 124 additions and 34 deletions

View file

@ -8,7 +8,7 @@ process.on("unhandledRejection", (reason, p) => {
// Always use UTC
// This is also set for the database in knexfile
import * as moment from "moment-timezone";
import moment from "moment-timezone";
moment.tz.setDefault("UTC");
import { Client } from "eris";