Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(ddm): datetime params #56567

Merged
merged 1 commit into from
Sep 20, 2023
Merged

ref(ddm): datetime params #56567

merged 1 commit into from
Sep 20, 2023

Conversation

obostjancic
Copy link
Member

Simplifies date params handing in useMetrics hook

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 20, 2023
function getDateTimeParams({start, end, period}: PageFilters['datetime']) {
return period
? {statsPeriod: period}
: {start: moment(start).toISOString(), end: moment(end).toISOString()};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still have to convert these to ISO because they are formatted as locale strings

@obostjancic obostjancic enabled auto-merge (squash) September 20, 2023 15:28
@obostjancic obostjancic merged commit 435ffae into master Sep 20, 2023
42 checks passed
@obostjancic obostjancic deleted the ogi/ref/ddm-datetime branch September 20, 2023 15:42
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants