From 901bcf5c188ea79350fecd499ad76460b866617b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 Apr 2022 10:53:35 +0200 Subject: Add ability to set start/end date to timeserie --- shared/core-utils/common/date.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/core-utils') 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 -- cgit v1.2.3