summaryrefslogtreecommitdiff
path: root/js_tests
diff options
context:
space:
mode:
authorakoskaaa <akos.hochrein@prezi.com>2016-04-03 18:53:11 +0200
committerTim Graham <timograham@gmail.com>2016-04-06 10:41:58 -0400
commitab2d34ba3fe95d0324d544ca2ca92c2bf0b533aa (patch)
tree8b568a9255822c6289be435032abfe8173500804 /js_tests
parenta6074e8908e36286de7e31f165be801df8ee1eab (diff)
downloaddjango-ab2d34ba3fe95d0324d544ca2ca92c2bf0b533aa.tar.gz
Fixed #25856 -- Added %B support to Date.strftime.
This enables the admin to display the correct localized month name if %B is used in the date format.
Diffstat (limited to 'js_tests')
-rw-r--r--js_tests/admin/core.test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js_tests/admin/core.test.js b/js_tests/admin/core.test.js
index 43fb27a7af..7f0a4d6fda 100644
--- a/js_tests/admin/core.test.js
+++ b/js_tests/admin/core.test.js
@@ -54,6 +54,7 @@ test('Date.getHourMinuteSecond', function(assert) {
test('Date.strftime', function(assert) {
var date = new Date(2014, 6, 1, 11, 0, 5);
assert.equal(date.strftime('%Y-%m-%d %H:%M:%S'), '2014-07-01 11:00:05');
+ assert.equal(date.strftime('%B %d, %Y'), 'July 01, 2014');
});
test('String.strptime', function(assert) {