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

Improve purgeTime display in web page #558

Merged
merged 2 commits into from
May 19, 2023

Conversation

natilou
Copy link
Contributor

@natilou natilou commented May 18, 2023

  • changing the line purgeTime = s.purgeDays.String() to use a function that formats the days like this: "N days" or "1 day"
  • adding the function formatDurationDays in utils.go file

Fixes #557

Screenshot from 2023-05-18 16-53-35
Screenshot from 2023-05-17 23-37-52

- changing the line `purgeTime = s.purgeDays.String()` to use a function that formats the days like this: "N days" or "1 day"
- adding the function `formatDurationDays` in utils.go file

Fixes dutchcoders#557
@aspacca
Copy link
Collaborator

aspacca commented May 19, 2023

thanks @natilou !

@aspacca aspacca merged commit bafbf0c into dutchcoders:main May 19, 2023
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 this pull request may close these issues.

purgeTime display
2 participants