Plugin

DontRoundMyTimestamps

Always rounds relative timestamps down, so 7.6y becomes 7y instead of 8y

Appearance Utility
index.ts
Download

Source

src/plugins/dontRoundMyTimestamps/index.ts
1import { Devs } from "@utils/constants";
2import definePlugin from "@utils/types";
3import { moment } from "@webpack/common";
4
5export 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