Skip to content

Commit

Permalink
Restyled by prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Oct 28, 2020
1 parent c151a13 commit a63d5a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/formatUTCDate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

0 comments on commit a63d5a8

Please sign in to comment.