diff --git a/django/contrib/admin/media/js/core.js b/django/contrib/admin/media/js/core.js
index 3ca8ad0..a1add0f 100644
|
a
|
b
|
function findPosY(obj) {
|
| 108 | 108 | //----------------------------------------------------------------------------- |
| 109 | 109 | // Date object extensions |
| 110 | 110 | // ---------------------------------------------------------------------------- |
| 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 | | } |
| 117 | | |
| 118 | 111 | Date.prototype.getTwelveHours = function() { |
| 119 | 112 | hours = this.getHours(); |
| 120 | 113 | if (hours == 0) { |
| … |
… |
Date.prototype.getTwoDigitSecond = function() {
|
| 149 | 142 | return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds(); |
| 150 | 143 | } |
| 151 | 144 | |
| 152 | | Date.prototype.getISODate = function() { |
| 153 | | return this.getCorrectYear() + '-' + this.getTwoDigitMonth() + '-' + this.getTwoDigitDate(); |
| 154 | | } |
| 155 | | |
| 156 | 145 | Date.prototype.getHourMinute = function() { |
| 157 | 146 | return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute(); |
| 158 | 147 | } |