You thoughts are always welcomed.
--
Ticket URL: <https://code.djangoproject.com/ticket/32062>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* component: contrib.admin => Internationalization
* stage: Unreviewed => Accepted
Comment:
Tentatively accepted, this will probably require a new option in
`window.CalendarNamespace`.
--
Ticket URL: <https://code.djangoproject.com/ticket/32062#comment:1>
* has_patch: 0 => 1
Old description:
> The default Date object of JavaScript has been extended in
> [[https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/core.js#L94-L110
> | static/admin/js/core.js]] to provide additional function to format
> dates in desired format. Recently, I required the need to have
> abbreviated month name. This functionality is not available in current
> implementation. Since, I have already implemented for my use case, I
> thought it might be helpful upstream. If this feature looks worth it, I
> would like to add this functionality for "%b" directive.
>
> You thoughts are always welcomed.
New description:
The default Date object of JavaScript has been extended in
[[https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/core.js#L94-L110
| static/admin/js/core.js]] to provide additional function to format dates
in desired format. Recently, I required the need to have abbreviated month
name. This functionality is not available in current implementation.
Since, I have already implemented for my use case, I thought it might be
helpful upstream. If this feature looks worth it, I would like to add this
functionality for "%b" directive.
You thoughts are always welcomed.
--
Comment:
Hi, I have created a patch for it.
[https://github.com/django/django/pull/13600 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32062#comment:2>
* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32062#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"982e860b736a4b1cc359e1fc90ce62d9b1ac7d0a" 982e860]:
{{{
#!CommitTicketReference repository=""
revision="982e860b736a4b1cc359e1fc90ce62d9b1ac7d0a"
Fixed #32062 -- Added %b support to Date.strftime.
This enables the admin to display the month as locale's abbreviated
name if %b is used in the date format.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32062#comment:5>