aboutsummaryrefslogtreecommitdiff
path: root/static/lib.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-01-12 23:43:01 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-01-12 23:43:01 +0100
commitd7abc421403c0e6c593d3f20ff8703b43d18f6a8 (patch)
treefe19d260e9fab406a99af46a9b893f007771af58 /static/lib.js
parentxcal->vcomponent fix rrule parsing. (diff)
downloadcalp-d7abc421403c0e6c593d3f20ff8703b43d18f6a8.tar.gz
calp-d7abc421403c0e6c593d3f20ff8703b43d18f6a8.tar.xz
Fix fallback js .format
Diffstat (limited to '')
-rw-r--r--static/lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/lib.js b/static/lib.js
index 11fdaf79..1d42100c 100644
--- a/static/lib.js
+++ b/static/lib.js
@@ -159,7 +159,7 @@ function format_date(date, str) {
}
return outstr;
}
-Object.prototype.format = function () { return this; } /* any number of arguments */
+Object.prototype.format = function () { return "" + this; } /* any number of arguments */
Date.prototype.format = function (str) { return format_date (this, str); }
/*