From 689e153a558d9fc418d0144fd4ed7f749eb52021 Mon Sep 17 00:00:00 2001 From: "olau@iola.dk" Date: Tue, 16 Mar 2010 16:05:26 +0000 Subject: [PATCH] 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 --- examples/time.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/time.html b/examples/time.html index 5f43b88..314167b 100644 --- a/examples/time.html +++ b/examples/time.html @@ -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() } }); });