﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18767	Admin's calendar for datetime fields doesn't show right values with russian and some other locales	Alexey Boriskin	Maxime Turcotte	"The problem is within [[https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L220|following lines]]:
{{{
        if (inp.value) {
            var date_parts = inp.value.split('-');
            var year = date_parts[0];
            var month = parseFloat(date_parts[1]);
            if (year.match(/\d\d\d\d/) && month >= 1 && month <= 12) {
                DateTimeShortcuts.calendars[num].drawDate(month, year);
            }
        }
}}}
These lines assume that date format is `YYYY-mm-dd`, which is not true for many locales.
"	Bug	closed	contrib.admin	dev	Normal	fixed		Florian Apolloner	Accepted	1	0	0	0	0	0
