From a63d5a8e3331342765451dd34ed0fb2a389b5639 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 28 Oct 2020 23:21:34 +0000 Subject: [PATCH] Restyled by prettier --- src/lib/formatUTCDate.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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");