Ticket #16204: 16204.diff

File 16204.diff, 1.2 KB (added by Stephen Burrows, 13 years ago)
  • django/contrib/admin/media/js/core.js

    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) {  
    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 }
    117 
    118111Date.prototype.getTwelveHours = function() {
    119112    hours = this.getHours();
    120113    if (hours == 0) {
    Date.prototype.getTwoDigitSecond = function() {  
    149142    return (this.getSeconds() < 10) ? '0' + this.getSeconds() : this.getSeconds();
    150143}
    151144
    152 Date.prototype.getISODate = function() {
    153     return this.getCorrectYear() + '-' + this.getTwoDigitMonth() + '-' + this.getTwoDigitDate();
    154 }
    155 
    156145Date.prototype.getHourMinute = function() {
    157146    return this.getTwoDigitHour() + ':' + this.getTwoDigitMinute();
    158147}
Back to Top