Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: Source/WebCore/inspector/front-end/utilities.js

Issue 8018012: Merge 95401 - Web Inspector: chromium-win: "Save timeline data" does nothing. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/front-end/TimelinePanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()
« no previous file with comments | « Source/WebCore/inspector/front-end/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698