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:
parent
bd7a344891
commit
738d2d547a
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user