X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fcore-utils%2Fcommon%2Fdate.ts;h=f0684ff86ec29ee271bcd6374be85863a7baa9ed;hb=83b1b7eaf1c04837f92de497e74895bee808eb83;hp=3e4a3c08c7e03c366997588431169dd4a719bf37;hpb=171efc48e67498406feb6d7873b3482b41505515;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/core-utils/common/date.ts b/shared/core-utils/common/date.ts index 3e4a3c08c..f0684ff86 100644 --- a/shared/core-utils/common/date.ts +++ b/shared/core-utils/common/date.ts @@ -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