
Time Formatter
A client-side mod which formats Discord Timestamps to your local time.
About this Mod
TimeFormatter
A simple client-side Minecraft mod that automatically finds and formats Discord-style timestamps in chat, converting them to your local time.
Features
- Client-Side Only: No server-side installation is required. It works on any server you join. The formatting works only with the mod installed.
- Automatic Formatting: Detects timestamps like
<t:1672531200>in chat messages. - Literal Sending (not timezone aware): If a timestamp like
<<t:1672531200>>is sent in the chat, it will get replaced by a matching literal assuming it won't overflow the 256 character limit, thus visible to everyone. - Local Time Conversion: All timestamps are converted and displayed in your computer's local time zone.
- Multiple Formats: Supports all of Discord's standard timestamp formatting styles.
- Relative Time: Can display time relatively, such as "5 minutes ago" or "in 2 hours".
How It Works
The mod checks incoming chat messages for timestamps like <t:TIMESTAMP:STYLE> (or <<t:TIMESTAMP:STYLE>>).
TIMESTAMP: A Unix timestamp (in seconds). You can also use the special valuesyesterday,nowandtomorrowto represent the respective time.STYLE: An optional single character that controls the output format. If you don't provide a style, it defaults tof(Short Date/Time).
Supported Styles
| Style | Example Output | Description |
|---|---|---|
t |
14:30 |
Short Time |
T |
14:30:00 |
Long Time |
d |
31/12/2023 |
Short Date |
D |
December 31, 2023 |
Long Date |
f |
December 31, 2023 at 14:30 |
Short Date/Time (Default) |
F |
Sunday, December 31, 2023 at 14:30 |
Long Date/Time |
R |
5 minutes ago |
Relative Time |
Example
If another player let's say in the UTC timezone sends the following message in chat:
The server event will start at <t:1704067200:F>.
And you're in the GMT+1 timezone, you'll see:
The server event will start at Monday, January 1, 2024 at 01:00.
However, if the player in UTC sends this message in chat:
My date and time is <<t:1704067200:F>>.
Everyone (even players without this mod) will see this:
The server event will start at Monday, January 1, 2024 at 01:00.
Installation
This is a Fabric mod and requires the Fabric API.
- Download the latest version.
- Place the downloaded
.jarfile into your.minecraft/modsfolder. - Launch the game using the Fabric Loader.
Building from Source
- Clone the repository:
git clone https://github.com/m3z0id/TimeFormatter.git - Navigate into the project directory:
cd TimeFormatter - Build the project using Gradle:
./gradlew build -Pmc=<Minecraft Version> -Pyarn=<Yarn Version> -Papi=<Fabric API Version> -Padventure=<Koryo Adventure Fabric Version> - The compiled
.jarfile will be located in thebuild/libs/directory.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Available Versions
How to Install Time Formatter on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.10).
Install Mod
Open the mod browser in the dashboard and search for "Time Formatter". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.10, 1.21.9, 1.21.8 (+8 more)
Server-side
✗ UnsupportedRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Time Formatter server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.10). You can switch loaders with one click in the panel.
Is Time Formatter compatible with fabric?
Time Formatter officially supports fabric for Minecraft 1.21.10, 1.21.9, 1.21.8. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Time Formatter – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Time Formatter consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Time Formatter with just one click on your server.