mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-27 18:10:27 +01:00
Remove hours from seconds
This commit is contained in:
@@ -45,7 +45,7 @@ export async function getDevelopmentHours(start: string, end: string): Promise<T
|
|||||||
|
|
||||||
const hours = Math.floor(total / 3600)
|
const hours = Math.floor(total / 3600)
|
||||||
const minutes = Math.floor(total / 60) - hours * 60
|
const minutes = Math.floor(total / 60) - hours * 60
|
||||||
const seconds = Math.floor(total) - minutes * 60
|
const seconds = Math.floor(total) - minutes * 60 - hours * 360
|
||||||
|
|
||||||
return {
|
return {
|
||||||
hours,
|
hours,
|
||||||
|
|||||||
Reference in New Issue
Block a user