Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.5.x] Fixed #21133 -- Clarifed documentation about strftime formatt…


Backport of 43a2ec7 from master
  • Loading branch information...
1 parent b541cf2 commit b8e7730f3e25a0bcabca82bf5a2e06411ffcc92e @funkybob funkybob committed with timgraham
5 docs/ref/class-based-views/mixins-date-based.txt
@@ -4,6 +4,11 @@ Date-based mixins
.. currentmodule:: django.views.generic.dates
+.. note::
+ All the date formatting attributes in these mixins use
+ :func:`~time.strftime` format characters. Do not try to use the format
+ characters from the :ttag:`now` template tag as they are not compatible.
4 docs/ref/templates/builtins.txt
@@ -1201,6 +1201,10 @@ Formats a date according to the given format.
Uses a similar format as PHP's ``date()`` function (
with some differences.
+.. note::
+ These format characters are not used in Django outside of templates. They
+ were designed to be compatible with PHP to ease transitioning for designers.
Available format strings:
================ ======================================== =====================

0 comments on commit b8e7730

Please sign in to comment.
Something went wrong with that request. Please try again.