Commit 23976fa4 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #13486 -- Corrected handling of %I in admin javascript version of...

Fixed #13486 -- Corrected handling of %I in admin javascript version of strftime. Thanks to Bufke for the report, and jmil for the solution.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent b6f0fa58
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -116,7 +116,13 @@ Date.prototype.getCorrectYear = function() {
}

Date.prototype.getTwelveHours = function() {
    return (this.getHours() <= 12) ? this.getHours() : 24 - this.getHours();
    hours = this.getHours();
    if (hours == 0) {
        return 12;
    }
    else {
        return hours <= 12 ? hours : hours-12
    }
}

Date.prototype.getTwoDigitMonth = function() {