Skip to content

Commit

Permalink
Fix/debug chart mobile (#433)
Browse files Browse the repository at this point in the history
* update date format for ecma standard
  • Loading branch information
b-pmcg authored Apr 25, 2022
1 parent ddc0071 commit eeab5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/home/components/Participation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function Participation({
const MONTHS_PAST = 6;
// This makes sure the timestamp is the same throughout the day so the SWR cache-key doesn't change
const unixtimeStart =
new Date(format(sub(new Date(), { months: MONTHS_PAST }), 'MM-dd-yyyy')).getTime() / 1000;
new Date(format(sub(new Date(), { months: MONTHS_PAST }), 'yyyy-MM-dd')).getTime() / 1000;

const { data: locks } = useSWR<AllLocksResponse[]>(
`/api/executive/all-locks?network=${network}&unixtimeStart=${unixtimeStart}`
Expand Down

0 comments on commit eeab5b2

Please sign in to comment.