#26275: defaultfilter `date` incorrectly formats -------------------------------------+------------------------------------- Reporter: mrigor | Owner: nobody Type: | Status: new Cleanup/optimization | Component: Documentation | Version: Severity: Normal | Resolution: Keywords: 1.7.11 template | Triage Stage: Accepted filter | Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by claudep):
* needs_better_patch: => 0 * component: Uncategorized => Documentation * needs_tests: => 0 * needs_docs: => 0 * type: Bug => Cleanup/optimization * stage: Unreviewed => Accepted Comment: I think that's the problem of your format string. Basically, you are asking: "Show me the month of that date (F) and then the year corresponding to the ISO week for that date (o)". So you are juxtaposing two values which don't make sense together. You should use 'Y' for the year in this case. We could add a note in the documentation for `o` (at least "See also `Y`"), because people might browse the list of formatters (https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#date) and stop at the first letter that match their initial intention, without understanding the real meaning of `o`. -- Ticket URL: <https://code.djangoproject.com/ticket/26275#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.146f7178530094a6f95f3b7db72acda2%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.