Commit 689e153a authored by olau@iola.dk's avatar olau@iola.dk

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
parent d9aba27f
...@@ -48,8 +48,8 @@ $(function () { ...@@ -48,8 +48,8 @@ $(function () {
$.plot($("#placeholder"), [d], { $.plot($("#placeholder"), [d], {
xaxis: { xaxis: {
mode: "time", mode: "time",
min: (new Date("1990/01/01")).getTime(), min: (new Date(1990, 1, 1)).getTime(),
max: (new Date("2000/01/01")).getTime() max: (new Date(2000, 1, 1)).getTime()
} }
}); });
}); });
...@@ -59,8 +59,8 @@ $(function () { ...@@ -59,8 +59,8 @@ $(function () {
xaxis: { xaxis: {
mode: "time", mode: "time",
minTickSize: [1, "month"], minTickSize: [1, "month"],
min: (new Date("1999/01/01")).getTime(), min: (new Date(1999, 1, 1)).getTime(),
max: (new Date("2000/01/01")).getTime() max: (new Date(2000, 1, 1)).getTime()
} }
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment