--
Ticket URL: <https://code.djangoproject.com/ticket/18767>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_docs: => 0
Comment:
Pull request: [https://github.com/django/django/pull/294]
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:1>
Comment (by anonymous):
I do not have that problem, describe the regional settings that are
installed on your system.
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:2>
Comment (by void):
I believe it's enough to have `LANGUAGE_CODE = 'ru-ru'` in the
`settings.py`
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:3>
* cc: apollo13 (added)
Comment:
Please describe what you see (probably with a screenshot) and what's wrong
there, putting 'ru-ru' as LANGUAGE_CODE doesn't seem to break anything for
me…
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:4>
Comment (by anonymous):
Ok, maybe I was not so clear in the description of this ticket.
Let's make django model with `DateTimeField` and register it with django
admin. You'll see something like this:
[http://dl.dropbox.com/u/302516/Screenshots/usualform.png]. Date is in
format `01.02.1986`, which means it's 1st of February of 1986.
Then click on the calendar icon and we'll see calendar popup:
[http://dl.dropbox.com/u/302516/Screenshots/r.png]. But the popup is
rendered for August 2012 (as you may see in the title: `Август 2012`). If
I'd switch my `LANGUAGE_CODE` to `'en-us'`, I see that calendar popup
renders correct month:
[http://dl.dropbox.com/u/302516/Screenshots/correct.png].
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:5>
* stage: Unreviewed => Accepted
Comment:
I was able to reproduce this.
The issue is that the calendar should display for the month/year of the
date that is set. Steps to reproduce:
* Set calendar date to February 1, 2000 (Russian date is 01.02.2000)
* Click the calendar icon
* Excepted behavior: Calendar is set to February 2000
* Actual behavior: Calendar is set to whatever it last was
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:6>
* needs_better_patch: 0 => 1
Comment:
Patch no longer applies cleanly.
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:7>
* status: new => assigned
* owner: nobody => maxocub
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:8>
Comment (by maxocub):
My PR: https://github.com/django/django/pull/2560
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:9>
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:10>
Comment (by maxocub):
This [https://github.com/django/django/pull/2560 PR] needs to be reviewed
please.
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:11>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:12>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"25e06bca57c068d4b9e9b4221b16a667ccb0d38e"]:
{{{
#!CommitTicketReference repository=""
revision="25e06bca57c068d4b9e9b4221b16a667ccb0d38e"
Fixed #18767 -- Fixed admin calendar for other locales than English.
Refactored openCalendar function from DateTimeShortcuts.js. Now, when
entered manually in the input field, the date will show up correctly on
the calendar for locales that don't use "-" for separator.
Thanks charettes for revivew and Alexey Boriskin for some of the patch.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:13>
Comment (by claudep):
I just noticed that the test might add ~30 seconds to the test suite. Is
testing every language really mandatory in this case?
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:14>
Comment (by maxocub):
I guess we could only test the 4 or 5 different types of date format.
--
Ticket URL: <https://code.djangoproject.com/ticket/18767#comment:15>