Skip to content

Commit

Permalink
Use human readable startAt date instead of hardcoded timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
LWJerri committed Jul 22, 2024
1 parent eea6abe commit 38a02f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/views/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export async function GET() {

const { ok, data } = await client.getWebsiteMetrics(UMAMI_SITE_ID, {
type: "url",
startAt: 1689109200380, // 13.07.2023
startAt: new Date("2023-07-13").getTime(),
endAt: new Date().getTime(),
});

Expand Down

0 comments on commit 38a02f9

Please sign in to comment.