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

Add support for server-specific timezone and date format settings

This commit is contained in:
Dragory 2020-08-10 00:24:06 +03:00
parent 4c9b5778b2
commit 8bd1572e2a
51 changed files with 326 additions and 168 deletions

View file

@ -36,7 +36,8 @@ export class GuildMutes extends BaseGuildRepository {
async addMute(userId, expiryTime): Promise<Mute> {
const expiresAt = expiryTime
? moment()
? moment
.utc()
.add(expiryTime, "ms")
.format("YYYY-MM-DD HH:mm:ss")
: null;
@ -52,7 +53,8 @@ export class GuildMutes extends BaseGuildRepository {
async updateExpiryTime(userId, newExpiryTime) {
const expiresAt = newExpiryTime
? moment()
? moment
.utc()
.add(newExpiryTime, "ms")
.format("YYYY-MM-DD HH:mm:ss")
: null;