mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Floor numbers instead of round to upper
This commit is contained in:
@@ -44,9 +44,9 @@ export async function getDevelopmentHours(start: string, end: string): Promise<T
|
||||
development_time.forEach(item => total += item.seconds)
|
||||
|
||||
return {
|
||||
total_hours: Math.round(total / 3600),
|
||||
total_minutes: Math.round(total / 60),
|
||||
total_seconds: Math.round(total)
|
||||
total_hours: Math.floor(total / 3600),
|
||||
total_minutes: Math.floor(total / 60),
|
||||
total_seconds: Math.floor(total)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user