debian-mirror-gitlab/app/assets/javascripts/analytics/usage_trends/constants.js
2021-04-17 20:07:23 +05:30

5 lines
203 B
JavaScript

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);