debian-mirror-gitlab/app/assets/javascripts/analytics/instance_statistics/constants.js
2021-01-30 21:13:32 +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);