Fix issue 255: date supplied as YYYY-MM-DD shows previous day's date...
authorDan Vanderkam <danvk@google.com>
Tue, 13 Mar 2012 23:12:45 +0000 (19:12 -0400)
committerDan Vanderkam <danvk@google.com>
Tue, 13 Mar 2012 23:12:45 +0000 (19:12 -0400)
commit3f675fe524eece31f39fb68601d2d2d7d5720941
tree7c01f1611866619687b0ce2a769c7cdab19b9324
parent6278f6fe69767cf21c1d3361bc141321a282d9ef
Fix issue 255: date supplied as YYYY-MM-DD shows previous day's date...

JavaScript date parsing is stunningly complex. This was broken by
https://github.com/danvk/dygraphs/commit/769e8bc7b8799385e2677b26a5c0a72e839f44ca

The underlying issue is that new Date("YYYY-MM-DD") parses the date in
UTC, but new Date("YYYY/MM/DD") parses it in the local time zone.
auto_tests/misc/local.html
auto_tests/tests/no_hours.js [new file with mode: 0644]
dygraph-utils.js