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

Re-use GRAPHITE_TIME_FORMAT constant #2543

Closed
lunkwill42 opened this issue Jan 5, 2023 · 0 comments · Fixed by #2588
Closed

Re-use GRAPHITE_TIME_FORMAT constant #2543

lunkwill42 opened this issue Jan 5, 2023 · 0 comments · Fixed by #2588
Assignees

Comments

@lunkwill42
Copy link
Member

Look into re-using the GRAPHITE_TIME_FORMAT constant introduced into nav.web.sortedstats by #2398, where applicable, such as:

if isinstance(start, datetime):
start = start.strftime('%H:%M%Y%m%d')
if isinstance(end, datetime):
end = end.strftime('%H:%M%Y%m%d')

Originally posted by @lunkwill42 in #2398 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants