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

[Enhancement]: Display time remaining for the ban to expire instead of the full date/time #114

Open
1 task done
piplupness opened this issue Dec 4, 2024 · 0 comments
Labels
awaiting-approval Topic has not been approved or denied enhancement An update to an existing part of the codebase

Comments

@piplupness
Copy link

Checked Existing

  • I have checked the repository for duplicate issues.

What enhancement would you like to see?

When a user gets their account_status set to 1 or 2, the error codes 598-0009 and 598-0010 display an expire date. Example:

Wed Dec 4 2024 00:23:15 GMT+0000

This is a very bad practice. First of all, there are a lot of timezones in the world, this actually requires users that are not from the UK (at least during standard time) to figure out what time in UTC corrisponds to their timezone, making it harder to comprehend how much time they have left.

The solution would be adapting to their own timezone but... it's still not straightfoward.

My proposed fix is, display how much time is left! Format can be days, hours, minutes and seconds. For example: 10d5h35m23s.

Any other details to share? (OPTIONAL)

Useful information to banned user is also displaying when the ban was issued, in yyyy-mm-dd

@piplupness piplupness added awaiting-approval Topic has not been approved or denied enhancement An update to an existing part of the codebase labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-approval Topic has not been approved or denied enhancement An update to an existing part of the codebase
Projects
None yet
Development

No branches or pull requests

1 participant