#23499: Error in built-in template tag "now" documentation -------------------------------+-------------------- Reporter: JDougherty | Owner: nobody Type: Uncategorized | Status: new Component: Documentation | Version: 1.7 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+-------------------- The [documentation for the built-in `now` template tag](https://docs.djangoproject.com/en/dev/ref/templates/builtins/) says the following:
Note that you can backslash-escape a format string if you want to use the “raw” value. In this example, “f” is backslash-escaped, because otherwise “f” is a format string that displays the time. '''The “o” doesn’t need to be escaped, because it’s not a format character:''' {{{ It is the {% now "jS o\f F" %} }}} Emphasis mine. This is incorrect. Per the [`date` tag documentation](https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std :templatefilter-date), the "o" is a format character. I have verified that "o" does require a backslash when using `now` template tag in testing. -- Ticket URL: <https://code.djangoproject.com/ticket/23499> 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/053.e3eeeacda0cea09139c3ed4d18c1661c%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.