Skip to content

Commit

Permalink
feat: analytics filter default to today minus one month (#385)
Browse files Browse the repository at this point in the history
* feat: default analytics filter from today - 1 month

Signed-off-by: David Dal Busco <[email protected]>

* chore: remove console log

Signed-off-by: David Dal Busco <[email protected]>

---------

Signed-off-by: David Dal Busco <[email protected]>
  • Loading branch information
peterpeterparker authored Jan 7, 2024
1 parent 040f581 commit 16efe8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
import { createEventDispatcher } from 'svelte';
import { nonNullish } from '@dfinity/utils';
import type { PageViewsPeriod } from '$lib/types/ortbiter';
import { addMonths, format } from 'date-fns';
let from = '';
let from = format(addMonths(new Date(), -1), 'yyyy-MM-dd');
let to = '';
const dispatch = createEventDispatcher();
Expand Down

0 comments on commit 16efe8e

Please sign in to comment.