{{ user.date_joined|date }}
Always format with N j, Y
Maybe this is no a problem because date filter uses to use with a arg, but
naturalday filter(of humanize) uses date filter to format dates.
--
Ticket URL: <https://code.djangoproject.com/ticket/25758>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Solved: https://github.com/django/django/pull/5665
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:1>
Comment (by timgraham):
Could you please add a test to demonstrate what this fixes?
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:2>
* has_patch: 0 => 1
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
I'll accept the ticket since no tests fail if that line from the pull
request is removed (same with `if arg is None: arg = settings.TIME_FORMAT`
in the time filter, but we still need a test to show what this fixes.
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:3>
* needs_tests: 1 => 0
Comment:
[https://github.com/django/django/pull/6068 New PR] with tests (and
including the time filter).
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:5>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"be9bd3348d3c4b060b6eea53ef23d0651c122c77" be9bd334]:
{{{
#!CommitTicketReference repository=""
revision="be9bd3348d3c4b060b6eea53ef23d0651c122c77"
Fixed #25758 -- Defaulted to current language FORMATs in date/time filters
Thanks Ali Lozano for the report and the initial patch, and Tim Graham for
the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:6>
Comment (by Tim Graham):
It looks like this changed a documented behavior, see #27981.
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:7>
Comment (by Tim Graham <timograham@…>):
In [changeset:"6585ebebaaa58aeef45210a3119dbaa322f8baca" 6585ebe]:
{{{
#!CommitTicketReference repository=""
revision="6585ebebaaa58aeef45210a3119dbaa322f8baca"
Fixed #27981 -- Doc'd date/time filter l10n changes in refs #25758.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"28cf32b2cb4e6385102be3192aea414be402e1a1" 28cf32b]:
{{{
#!CommitTicketReference repository=""
revision="28cf32b2cb4e6385102be3192aea414be402e1a1"
[1.11.x] Fixed #27981 -- Doc'd date/time filter l10n changes in refs
#25758.
Backport of 6585ebebaaa58aeef45210a3119dbaa322f8baca from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:9>
Comment (by Tim Graham <timograham@…>):
In [changeset:"16b97a2cebff2d59d2aadf99b4a240cdc767d646" 16b97a2]:
{{{
#!CommitTicketReference repository=""
revision="16b97a2cebff2d59d2aadf99b4a240cdc767d646"
[1.10.x] Fixed #27981 -- Doc'd date/time filter l10n changes in refs
#25758.
Backport of 6585ebebaaa58aeef45210a3119dbaa322f8baca from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25758#comment:10>