diff --git a/views/sections/stats/misc/end_island.ejs b/views/sections/stats/misc/end_island.ejs
index 939b7fc9ec..0febfa8fdd 100644
--- a/views/sections/stats/misc/end_island.ejs
+++ b/views/sections/stats/misc/end_island.ejs
@@ -29,17 +29,20 @@
<% if (calculated.misc.dragons.fastest_kill !== undefined && Object.keys(calculated.misc.dragons.fastest_kill).length) { %>
<% tooltip = "";
+
+ const formatTime = (ms) => (ms < 1000 ? `0.${ms}` : moment.duration(ms, "milliseconds").format("m:ss.SSS")) + "s";
+
for (const key in calculated.misc.dragons.fastest_kill) {
if (key === "best") {
continue;
}
- tooltip += `${helper.capitalizeFirstLetter(key)}: ${moment.duration(calculated.misc.dragons.fastest_kill[key], "milliseconds").format("m:ss.SSS")}s
`;
+ tooltip += `${helper.capitalizeFirstLetter(key)}: ${formatTime(calculated.misc.dragons.fastest_kill[key])}
`;
} %>
- <% if (tooltip) { %><% } else { %><% } %>
+ <% if (tooltip) { %><% } else { %><% } %>
Fastest Kill:
- <%= moment.duration(calculated.misc.dragons.fastest_kill.best, "milliseconds").format("m:ss.SSS") %>s
+ <%= formatTime(calculated.misc.dragons.fastest_kill.best) %>
<% } %>