(n)
| 292 | |
| 293 | (function () { |
| 294 | function f(n) { |
| 295 | return n < 10 ? '0' + n : n; |
| 296 | } |
| 297 | if (typeof Date.prototype.toJSON !== 'function') { |
| 298 | Date.prototype.toJSON = function (key) { |
| 299 | return isFinite(this.valueOf()) ? this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z' : null; |