diff --git a/shared/src/libs/helpers/date/get-from-now-time/get-from-now-time.helper.ts b/shared/src/libs/helpers/date/get-from-now-time/get-from-now-time.helper.ts index 364982c9..18cc167d 100644 --- a/shared/src/libs/helpers/date/get-from-now-time/get-from-now-time.helper.ts +++ b/shared/src/libs/helpers/date/get-from-now-time/get-from-now-time.helper.ts @@ -1,5 +1,5 @@ import { dayjs } from '../dayjs/dayjs.js'; -const getFromNowTime = (date: Date): string => dayjs(date).fromNow(); +const getFromNowTime = (date: Date | string): string => dayjs(date).fromNow(); export { getFromNowTime };