diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-04 16:20:22 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-04 16:20:22 +0000 |
| commit | 8066fced3398405c5c2153ca33b3441ef7e1b2dc (patch) | |
| tree | 51d86779870b79527b5130f2e6fd984f621a7e8d /docs | |
| parent | cb2d8cd3a4f7fcaf65613aac0cad8522328de9f2 (diff) | |
Fixed #16392 -- Clarified docs of the "c" date format with regard to naive datetime objects. Thanks, ybon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 3ab8a5d73f..bdac556652 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1251,7 +1251,10 @@ Available format strings: A ``'AM'`` or ``'PM'``. ``'AM'`` b Month, textual, 3 letters, lowercase. ``'jan'`` B Not implemented. - c ISO 8601 Format. ``2008-01-02T10:30:00.000123`` + c ISO 8601 format. (Note: unlike others ``2008-01-02T10:30:00.000123+02:00``, + formatters, such as "Z", "O" or "r", or ``2008-01-02T10:30:00.000123`` if the datetime is naive + the "c" formatter will not add timezone + offset if value is a `naive datetime`_.) d Day of the month, 2 digits with ``'01'`` to ``'31'`` leading zeros. D Day of the week, textual, 3 letters. ``'Fri'`` @@ -1343,6 +1346,8 @@ used, without applying any localization. .. versionchanged:: 1.2 Predefined formats can now be influenced by the current locale. +.. _naive datetime: http://docs.python.org/library/datetime.html#datetime.tzinfo + .. templatefilter:: default default |
