eastein / lidless

A great Eye, lidless, wreathed in webcams.
Other
19 stars 4 forks source link

Potential fix for #26 #39

Closed ashanan closed 12 years ago

ashanan commented 12 years ago

This uses javascript's Date.getTimezoneOffset() method to calculate the offset from the times that the feeds deliver.

I didn't actually set up lidless, but I did create a test page that uses data from one of the cameras to show it working. I put the code in the ajax_history function, but I didn't actually run it so it may need some tweaking.

ashanan commented 12 years ago

What do you think about this as a more complete fix for handling the DST boundaries: splitting the data from the feed into pre- and post-DST graphs whenever we detect a DST boundary. Detecting a boundary should be as simple as comparing the getTimezoneOffset() for the first and last time points in the data.

Assumptions: -the space feeds give data sorted by time already