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

Incorrect DateRange preset for "Last month" #1956

Closed
AyushAgrawal-A2 opened this issue May 2, 2024 · 1 comment · Fixed by #1957
Closed

Incorrect DateRange preset for "Last month" #1956

AyushAgrawal-A2 opened this issue May 2, 2024 · 1 comment · Fixed by #1957
Labels
bug Something isn't working to-review Evidence team to review

Comments

@AyushAgrawal-A2
Copy link
Contributor

Steps To Reproduce

ref:

label: 'Last Month',
group: 'Last',
range: {
start: startOfYear(calendarEnd.subtract({ years: 1 })),
end: endOfYear(calendarEnd.subtract({ years: 1 }))
}

Environment

  • Node version (node -v):
  • npm version (npm -v):
  • OS:
  • Browser:
  • Database:

Expected Behaviour

Preset range should be for last month as per label

Actual Behaviour

Preset range is for last year

Workarounds

@AyushAgrawal-A2 AyushAgrawal-A2 added bug Something isn't working to-review Evidence team to review labels May 2, 2024
@mcrascal
Copy link
Member

mcrascal commented May 2, 2024

Ah good eye, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to-review Evidence team to review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants