File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
django/contrib/admin/static/admin/js Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,6 @@ function findPosY(obj) {
108108//-----------------------------------------------------------------------------
109109// Date object extensions
110110// ----------------------------------------------------------------------------
111- Date . prototype . getCorrectYear = function ( ) {
112- // Date.getYear() is unreliable --
113- // see http://www.quirksmode.org/js/introdate.html#year
114- var y = this . getYear ( ) % 100 ;
115- return ( y < 38 ) ? y + 2000 : y + 1900 ;
116- }
117111
118112Date . prototype . getTwelveHours = function ( ) {
119113 hours = this . getHours ( ) ;
@@ -149,10 +143,6 @@ Date.prototype.getTwoDigitSecond = function() {
149143 return ( this . getSeconds ( ) < 10 ) ? '0' + this . getSeconds ( ) : this . getSeconds ( ) ;
150144}
151145
152- Date . prototype . getISODate = function ( ) {
153- return this . getCorrectYear ( ) + '-' + this . getTwoDigitMonth ( ) + '-' + this . getTwoDigitDate ( ) ;
154- }
155-
156146Date . prototype . getHourMinute = function ( ) {
157147 return this . getTwoDigitHour ( ) + ':' + this . getTwoDigitMinute ( ) ;
158148}
You can’t perform that action at this time.
0 commit comments