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:
parent
30f57dad24
commit
47f124c7d6
4 changed files with 24 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue