parent
8d96d8b682
commit
f569cea4b3
1 changed files with 3 additions and 5 deletions
|
@ -1126,12 +1126,10 @@ LogUsageChart.prototype.buildData_ = function(aggregatedLogs) {
|
|||
var title = this.titleMap_[aggregated.kind] || aggregated.kind;
|
||||
var datetime = parseDate(aggregated.datetime);
|
||||
|
||||
var day = datetime.getDate();
|
||||
if (day < 10) {
|
||||
day = '0' + day;
|
||||
}
|
||||
var day = ('0' + datetime.getDate()).slice(-2);
|
||||
var month = ('0' + (datetime.getMonth() + 1)).slice(-2);
|
||||
|
||||
var formatted = (datetime.getMonth() + 1) + '/' + day;
|
||||
var formatted = month + '/' + day;
|
||||
var justdate = new Date(datetime.getFullYear(), datetime.getMonth(), datetime.getDate());
|
||||
var key = title + '_' + formatted;
|
||||
var entry = {
|
||||
|
|
Reference in a new issue