4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-18 06:57:05 +00:00

Fix time formatting with floating points.

This commit is contained in:
Buster Neece 2023-11-16 13:10:19 -06:00
parent bd7a344891
commit 738d2d547a
No known key found for this signature in database

View File

@ -1,5 +1,5 @@
export default function (seconds: string | number) {
seconds = Number(seconds);
seconds = Math.floor(Number(seconds));
const d: number = Math.floor(seconds / 86400),
h: number = Math.floor(seconds / 3600) % 24,