From 7926f07735514f2fe6d76f5dad8f09597742ea61 Mon Sep 17 00:00:00 2001 From: Ryan Vazquez Date: Thu, 29 Oct 2020 17:39:02 -0400 Subject: [PATCH] make default date format public --- plugins/cost-insights/src/types/Duration.ts | 2 ++ plugins/cost-insights/src/utils/duration.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/cost-insights/src/types/Duration.ts b/plugins/cost-insights/src/types/Duration.ts index a1eb9aa31e..acf707dd1e 100644 --- a/plugins/cost-insights/src/types/Duration.ts +++ b/plugins/cost-insights/src/types/Duration.ts @@ -26,3 +26,5 @@ export enum Duration { P1M = 'P1M', P3M = 'P3M', } + +export const DEFAULT_DATE_FORMAT = 'YYYY-MM-DD'; diff --git a/plugins/cost-insights/src/utils/duration.ts b/plugins/cost-insights/src/utils/duration.ts index d90e78dc5f..6a880b382c 100644 --- a/plugins/cost-insights/src/utils/duration.ts +++ b/plugins/cost-insights/src/utils/duration.ts @@ -15,11 +15,9 @@ */ import moment from 'moment'; -import { Duration } from '../types'; +import { Duration, DEFAULT_DATE_FORMAT } from '../types'; import { assertNever } from './assert'; -export const DEFAULT_DATE_FORMAT = 'YYYY-MM-DD'; - /** * Derive the start date of a given period, assuming two repeating intervals. *