debian-mirror-gitlab/app/assets/javascripts/analytics/usage_trends/constants.js

6 lines
203 B
JavaScript
Raw Normal View History

2021-01-03 14:25:43 +05:30
import { getDateInPast } from '~/lib/utils/datetime_utility';
export const TOTAL_DAYS_TO_SHOW = 365;
export const TODAY = new Date();
export const START_DATE = getDateInPast(TODAY, TOTAL_DAYS_TO_SHOW);