Make sure the graph uses UTC date range
This commit is contained in:
parent
fc7d319c7c
commit
d80015276b
1 changed files with 2 additions and 3 deletions
|
@ -1274,7 +1274,6 @@ function LogUsageChart(titleMap) {
|
||||||
this.colorScale_ = d3.scale.category20();
|
this.colorScale_ = d3.scale.category20();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builds the D3-representation of the data.
|
* Builds the D3-representation of the data.
|
||||||
*/
|
*/
|
||||||
|
@ -1491,7 +1490,7 @@ LogUsageChart.prototype.draw = function(container, logData) {
|
||||||
// Create the x-axis domain to encompass a week from today.
|
// Create the x-axis domain to encompass a week from today.
|
||||||
var domain = [];
|
var domain = [];
|
||||||
var datetime = new Date();
|
var datetime = new Date();
|
||||||
datetime = new Date(datetime.getFullYear(), datetime.getMonth(), datetime.getDate());
|
datetime = new Date(datetime.getUTCFullYear(), datetime.getUTCMonth(), datetime.getUTCDate());
|
||||||
for (var i = 7; i >= 0; --i) {
|
for (var i = 7; i >= 0; --i) {
|
||||||
domain.push(offsetDate(datetime, -1 * i));
|
domain.push(offsetDate(datetime, -1 * i));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue