Index: Source/WebCore/inspector/front-end/utilities.js |
=================================================================== |
--- Source/WebCore/inspector/front-end/utilities.js (revision 95840) |
+++ Source/WebCore/inspector/front-end/utilities.js (working copy) |
@@ -535,21 +535,18 @@ |
return num; |
} |
-Date.prototype.toRFC3339 = function() |
+Date.prototype.toISO8601Compact = function() |
{ |
function leadZero(x) |
{ |
return x > 9 ? x : '0' + x |
} |
- var offset = Math.abs(this.getTimezoneOffset()); |
- var offsetString = Math.floor(offset / 60) + ':' + leadZero(offset % 60); |
- return this.getFullYear() + '-' + |
- leadZero(this.getMonth() + 1) + '-' + |
+ return this.getFullYear() + |
+ leadZero(this.getMonth() + 1) + |
leadZero(this.getDate()) + 'T' + |
- leadZero(this.getHours()) + ':' + |
- leadZero(this.getMinutes()) + ':' + |
- leadZero(this.getSeconds()) + |
- (!offset ? "Z" : (this.getTimezoneOffset() > 0 ? '-' : '+') + offsetString); |
+ leadZero(this.getHours()) + |
+ leadZero(this.getMinutes()) + |
+ leadZero(this.getSeconds()); |
} |
HTMLTextAreaElement.prototype.moveCursorToEnd = function() |