-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
fix the book edit confirmation template dropping initial data for dates #893
Conversation
oh, this is good! I bet you don't even need to check for |
you can, but that creates a fun different issue haha |
ah that makes sense, insofar as handling dates ever does. Thank you, I think this is ready to go :) |
apparently django uses the form's |
nice. If you run |
whoops, that issue should've been obvious in hindsight, i'll test locally until i get it working fine |
this looks good to me. had a few errors but i'm fairly certain they're issues with my particular dev environment |
When I tried to add a book, I selected a date using the built-in datepicker in Brave/chromium, which formats the date as
This is what the browser date picker looks like for me: python-dateutil is available in bookwyrm, which has pretty robust date parsing comapred to |
i honestly can't believe that's not standardized lol. i tried writing a test to make sure this doesn't regress, but i couldn't get a test case that passed/failed properly |
beautiful! works great, even with the wildly inconsistent state of time |
this is a terrible commit message, sorry xd
the template was checking for initial date values in
book
, but in the confirmation dialogue, it needs to look inform
. it's kind of ugly, but i'm not sure there's a better way that doesn't also rework a lot of book editing view. making this a draft pr in case anyone has a suggestion though!edit: whoops, meant to post the issue first. related: #894