=== modified file 'django/contrib/admin/media/js/admin/DateTimeShortcuts.js'
|
|
|
223 | 223 | DateTimeShortcuts.calendars[num].drawNextMonth(); |
224 | 224 | }, |
225 | 225 | handleCalendarCallback: function(num) { |
226 | | return "function(y, m, d) { DateTimeShortcuts.calendarInputs["+num+"].value = y+'-'+m+'-'+d; document.getElementById(DateTimeShortcuts.calendarDivName1+"+num+").style.display='none';}"; |
| 226 | return "function(y, m, d) { DateTimeShortcuts.calendarInputs["+num+"].value = y+'-'+(m<10?'0':'')+m+'-'+(d<10?'0':'')+d; document.getElementById(DateTimeShortcuts.calendarDivName1+"+num+").style.display='none';}"; |
227 | 227 | }, |
228 | 228 | handleCalendarQuickLink: function(num, offset) { |
229 | 229 | var d = new Date(); |