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

Saving a datetime such as 2024-04-21T14:16:48 sets it to 2024-04-21T00:00:00, but 2024-04-21 14:16:48 keeps the time #276

Open
StanczakDominik opened this issue Apr 17, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers medium priority

Comments

@StanczakDominik
Copy link
Collaborator

StanczakDominik commented Apr 17, 2024

Reproducer steps:

  1. Create a new action in http://localhost:4000/moderation/action/new_with_user?teiserver_user=%231_, any Reason, say 3d Expires, any restriction, a Note is fine.
  2. Open the edit page for the action you've created. Assuming it's action 1, that's http://localhost:4000/moderation/action/1/edit. You'll see something like 2024-04-20T04:52:58. in the Expires field
  3. Try to shorten it by a day, save, reopen the action. You'll see it went to 2024-04-19T00:00:00.
  4. Try to set it to 2024-04-20 04:52:58, with the T removed. It'll save fine and keep the time part.

So basically I guess if we edit datetime display to show in fields like the Expires field without the T in there, it'll be just fine :)

@StanczakDominik StanczakDominik added the good first issue Good for newcomers label Jun 3, 2024
@L-e-x-o-n L-e-x-o-n added bug Something isn't working medium priority labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers medium priority
Projects
None yet
Development

No branches or pull requests

2 participants