1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Add ability to set start/end date to timeserie

This commit is contained in:
Chocobozzz 2022-04-07 10:53:35 +02:00 committed by Chocobozzz
parent ac907dc7c1
commit 901bcf5c18
12 changed files with 296 additions and 22 deletions

View file

@ -43,6 +43,8 @@ function isLastWeek (d: Date) {
return getDaysDifferences(now, d) <= 7
}
// ---------------------------------------------------------------------------
function timeToInt (time: number | string) {
if (!time) return 0
if (typeof time === 'number') return time