jlab-sensing / DirtViz

DirtViz is a project to visualize data collected from sensors deployed in sensor networks.
https://dirtviz.jlab.ucsc.edu/
MIT License
4 stars 8 forks source link

Export to CSV not working #210

Closed ay-bh closed 3 months ago

ay-bh commented 3 months ago

Describe the Bug

The current bug was introduced after merging #209, and it pertains to the export CSV functionality, which is broken due to the startTime and endTime parameters not being passed in the correct format. This leads to the server returning a 500 error.

To Reproduce

To reproduce this issue, follow these steps:

  1. Navigate to the dashboard and click the "EXPORT TO CSV" button.
  2. Observe the server returning a 500 error in the console.

Expected Behavior

The expected behavior is that the export CSV functionality successfully sends a request to the server with the correct startTime and endTime parameters. This should result in the server processing the request and returning the requested data in a CSV file without encountering any errors.