mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #5385 -- Made the date returned from the calendar picker consistent with the usual format of dates in the admin. Thanks Petr Marhoun for the ticket and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8390 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		@@ -236,7 +236,7 @@ var DateTimeShortcuts = {
 | 
				
			|||||||
        DateTimeShortcuts.calendars[num].drawNextMonth();
 | 
					        DateTimeShortcuts.calendars[num].drawNextMonth();
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    handleCalendarCallback: function(num) {
 | 
					    handleCalendarCallback: function(num) {
 | 
				
			||||||
        return "function(y, m, d) { DateTimeShortcuts.calendarInputs["+num+"].value = y+'-'+m+'-'+d; document.getElementById(DateTimeShortcuts.calendarDivName1+"+num+").style.display='none';}";
 | 
					        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';}";
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    handleCalendarQuickLink: function(num, offset) {
 | 
					    handleCalendarQuickLink: function(num, offset) {
 | 
				
			||||||
       var d = new Date();
 | 
					       var d = new Date();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user