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

Unified Diff: netlog_viewer/netlog_viewer/time_util.js

Issue 3011363002: Apply Chromium changes up to commit 0036296a1128ac9cbefeaff51c8df831ec421c36 (Closed)
Patch Set: address comments Created 3 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
Index: netlog_viewer/netlog_viewer/time_util.js
diff --git a/netlog_viewer/netlog_viewer/time_util.js b/netlog_viewer/netlog_viewer/time_util.js
index c5907ffe50ad380393cca209116bef161410e27c..095e6212b9500c99458c96296ac3e2f884d3908a 100644
--- a/netlog_viewer/netlog_viewer/time_util.js
+++ b/netlog_viewer/netlog_viewer/time_util.js
@@ -132,14 +132,12 @@ var timeutil = (function() {
* @return {string} A string representation of |date|.
*/
function dateToString(date) {
- var dateStr = date.getFullYear() + '-' +
- zeroPad_(date.getMonth() + 1, 2) + '-' +
- zeroPad_(date.getDate(), 2);
+ var dateStr = date.getFullYear() + '-' + zeroPad_(date.getMonth() + 1, 2) +
+ '-' + zeroPad_(date.getDate(), 2);
var timeStr = zeroPad_(date.getHours(), 2) + ':' +
- zeroPad_(date.getMinutes(), 2) + ':' +
- zeroPad_(date.getSeconds(), 2) + '.' +
- zeroPad_(date.getMilliseconds(), 3);
+ zeroPad_(date.getMinutes(), 2) + ':' + zeroPad_(date.getSeconds(), 2) +
+ '.' + zeroPad_(date.getMilliseconds(), 3);
return dateStr + ' ' + timeStr;
}
« no previous file with comments | « netlog_viewer/netlog_viewer/tab_switcher_view.js ('k') | netlog_viewer/netlog_viewer/timeline_data_series.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698