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:
parent
ac907dc7c1
commit
901bcf5c18
12 changed files with 296 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue