diff --git a/src/lib/formatUTCDate.ts b/src/lib/formatUTCDate.ts index 4b3cdcaf..6c0c2a54 100644 --- a/src/lib/formatUTCDate.ts +++ b/src/lib/formatUTCDate.ts @@ -2,10 +2,10 @@ import { config } from "app-config/index"; import moment, { Moment } from "moment"; export function formatUTCDate(date: Moment) { - const shiftedDate = moment(date).add((config.dateOffset || 0), 'hours'); - - return shiftedDate.format('YYYY-MM-DD') + const shiftedDate = moment(date).add(config.dateOffset || 0, "hours"); + + return shiftedDate.format("YYYY-MM-DD"); } export const formatNowMinusDays = (days) => formatUTCDate(plusDays(days)); -export const plusDays = (days) => moment.utc().add(days, 'days'); +export const plusDays = (days) => moment.utc().add(days, "days");