summaryrefslogtreecommitdiff
path: root/httemplate/elements/calendar.js
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/calendar.js')
-rw-r--r--httemplate/elements/calendar.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/elements/calendar.js b/httemplate/elements/calendar.js
index f5c74f608..ccc963d8a 100644
--- a/httemplate/elements/calendar.js
+++ b/httemplate/elements/calendar.js
@@ -1790,6 +1790,7 @@ Date.prototype.print = function (str) {
return str;
};
+if ( !Date.prototype.__msh_oldSetFullYear ) {
Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear;
Date.prototype.setFullYear = function(y) {
var d = new Date(this);
@@ -1798,6 +1799,7 @@ Date.prototype.setFullYear = function(y) {
this.setDate(28);
this.__msh_oldSetFullYear(y);
};
+}
// END: DATE OBJECT PATCHES