Use the Date(year, month, day) constructor instead of the string-based

one which can be a bit confusing (reported by Udi Falkson)


git-svn-id: https://flot.googlecode.com/svn/trunk@238 1e0a6537-2640-0410-bfb7-f154510ff394
pull/1/head
olau@iola.dk 16 years ago
parent d9aba27f62
commit 689e153a55

@ -48,8 +48,8 @@ $(function () {
$.plot($("#placeholder"), [d], {
xaxis: {
mode: "time",
min: (new Date("1990/01/01")).getTime(),
max: (new Date("2000/01/01")).getTime()
min: (new Date(1990, 1, 1)).getTime(),
max: (new Date(2000, 1, 1)).getTime()
}
});
});
@ -59,8 +59,8 @@ $(function () {
xaxis: {
mode: "time",
minTickSize: [1, "month"],
min: (new Date("1999/01/01")).getTime(),
max: (new Date("2000/01/01")).getTime()
min: (new Date(1999, 1, 1)).getTime(),
max: (new Date(2000, 1, 1)).getTime()
}
});
});

Loading…
Cancel
Save