Opened 4 years ago
Last modified 4 years ago
#32062 closed New feature
Add %b support to Date.strftime. — at Version 2
Description (last modified by ) ¶
The default Date object of JavaScript has been extended in 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.
Change History (2)
comment:1 by , 4 years ago
Component: | contrib.admin → Internationalization |
---|---|
Summary: | Option to render abbreviated month name in Date.prototype.strftime → Add %b support to Date.strftime. |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 4 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
Hi, I have created a patch for it. PR
Tentatively accepted, this will probably require a new option in
window.CalendarNamespace
.