Plugin
DontRoundMyTimestamps
Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y
1
import { Devs } from "@utils/constants";2
import definePlugin from "@utils/types";3
import { moment } from "@webpack/common";4
5
export default definePlugin({6
name: "DontRoundMyTimestamps",7
authors: [Devs.Lexi],8
description: "Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y",9
tags: ["Appearance", "Utility"],10
11
start() {12
moment.relativeTimeRounding(Math.floor);13
},14
15
stop() {16
moment.relativeTimeRounding(Math.round);17
}18
});19