From a54ec4ad64311f13e4d75cd67f4d77c4906456d1 Mon Sep 17 00:00:00 2001 From: Mark Cote Date: Fri, 15 Jun 2012 06:56:22 -0400 Subject: [PATCH] Time format now a proper subset of strftime's. --- examples/time.html | 48 +++++++++++++++++++++++++-------- jquery.flot.time.js | 66 ++++++++++++++++++++++++--------------------- 2 files changed, 73 insertions(+), 41 deletions(-) diff --git a/examples/time.html b/examples/time.html index 4a6e908..8eb1c0b 100644 --- a/examples/time.html +++ b/examples/time.html @@ -23,7 +23,9 @@

Zoom to: -

+ + +

The timestamps must be specified as Javascript timestamps, as milliseconds since January 1, 1970 00:00. This is like Unix @@ -31,10 +33,10 @@ multiply with 1000!).

As an extra caveat, the timestamps are interpreted according to - UTC to avoid having the graph shift with each visitor's local - time zone. So you might have to add your local time zone offset - to the timestamps or simply pretend that the data was produced - in UTC instead of your local time zone.

+ UTC and, by default, displayed as such. You can set the axis + "timezone" option to "browser" to display the timestamps in the + user's timezone, or, if you use timezoneJS, you can specify a + time zone.