mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#11968-Fix Histogram graph pdf
This commit is contained in:
parent
2caa760634
commit
e23420a3fa
@ -943,17 +943,25 @@ function pandoraFlotSlicebar(
|
|||||||
|
|
||||||
// Format functions
|
// Format functions
|
||||||
function xFormatter(v) {
|
function xFormatter(v) {
|
||||||
// var ct = new Date();
|
var ct;
|
||||||
var ct = new timezoneJS.Date();
|
if (typeof timezoneJS === "undefined") {
|
||||||
|
ct = new Date();
|
||||||
|
} else {
|
||||||
|
ct = new timezoneJS.Date();
|
||||||
ct.setTimezone(phpTimezone);
|
ct.setTimezone(phpTimezone);
|
||||||
|
}
|
||||||
|
|
||||||
var currentTime = ct.getTime();
|
var currentTime = ct.getTime();
|
||||||
|
|
||||||
var diffDates = (currentTime - 1000 * datelimit) / 1000;
|
var diffDates = (currentTime - 1000 * datelimit) / 1000;
|
||||||
|
|
||||||
// var d = new Date(1000 * (v + datelimit));
|
var d;
|
||||||
var d = new timezoneJS.Date(1000 * (v + datelimit));
|
if (typeof timezoneJS === "undefined") {
|
||||||
|
d = new Date(1000 * (v + datelimit));
|
||||||
|
} else {
|
||||||
|
d = new timezoneJS.Date(1000 * (v + datelimit));
|
||||||
d.setTimezone(phpTimezone);
|
d.setTimezone(phpTimezone);
|
||||||
|
}
|
||||||
|
|
||||||
var monthNames = [
|
var monthNames = [
|
||||||
"Jan",
|
"Jan",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user