In `TIME_INPUT_FORMATS` and `DATETIME_INPUT_FORMATS`, the first order
should be
`'%H:%M:%S', # 14:30:59` and `'%d/%m/%Y %H:%M:%S', # 25/10/2006
14:30:59`
The final code should be like this
{{{
#!python
TIME_INPUT_FORMATS = [
'%H:%M:%S', # 14:30:59
'%H:%M:%S.%f', # 14:30:59.000200
'%H:%M', # 14:30
]
DATETIME_INPUT_FORMATS = [
'%d/%m/%Y %H:%M:%S', # 25/10/2006 14:30:59
'%d/%m/%Y %H:%M:%S.%f', # 25/10/2006 14:30:59.000200
'%d/%m/%Y %H:%M', # 25/10/2006 14:30
]
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29109>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
The submitter discussed with me (last editor of the file) via email.
Apparently, `DateTimeShortcut.js` does not support `%f` and so
prioritizing those formats break admin functionalities.
https://github.com/django/django/pull/9656
--
Ticket URL: <https://code.djangoproject.com/ticket/29109#comment:1>
* status: new => assigned
* cc: Manatsawin Hanmongkolchai (added)
* owner: nobody => Manatsawin Hanmongkolchai
--
Ticket URL: <https://code.djangoproject.com/ticket/29109#comment:2>
* stage: Unreviewed => Accepted
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/29109#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1a1264f1494976c562c7cb832fe47f3e1e765b8f" 1a1264f1]:
{{{
#!CommitTicketReference repository=""
revision="1a1264f1494976c562c7cb832fe47f3e1e765b8f"
Fixed #29109 -- Fixed the admin time picker widget for the Thai locale.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29109#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"a1286b5a64bc56c3e33e53ffac0eefce76f3efdb" a1286b5a]:
{{{
#!CommitTicketReference repository=""
revision="a1286b5a64bc56c3e33e53ffac0eefce76f3efdb"
[2.0.x] Fixed #29109 -- Fixed the admin time picker widget for the Thai
locale.
Backport of 1a1264f1494976c562c7cb832fe47f3e1e765b8f from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29109#comment:5>