#32062: Add %b support to Date.strftime.
-------------------------------------+-------------------------------------
Reporter: Gagan Deep | Owner: Gagan
| Deep
Type: New feature | Status: assigned
Component: | Version: 3.1
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Gagan Deep):
* 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>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.7d0c585d2245ee2c12e69fd5a4f42681%40djangoproject.com.