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

Set moment default timezone to UTC

This requires switching to the moment-timezone package.
This is for consistensy with knexfile, which already sets the DB timezone to UTC.
This commit is contained in:
Dragory 2018-07-07 15:39:56 +03:00
parent 30f57dad24
commit 47f124c7d6
4 changed files with 24 additions and 2 deletions

View file

@ -6,6 +6,11 @@ process.on("unhandledRejection", (reason, p) => {
process.exit();
});
// Always use UTC
// This is also set for the database in knexfile
import moment from "moment-timezone";
moment.tz.setDefault("UTC");
import { Client } from "eris";
import { Knub, logger } from "knub";
import { BotControlPlugin } from "./plugins/BotControl";

View file

@ -7,7 +7,7 @@ import {
TextChannel,
User
} from "eris";
import * as moment from "moment";
import * as moment from "moment-timezone";
import { GuildModActions } from "../data/GuildModActions";
enum ActionType {