Implements date selection ranges for getting records. Implemented for both checkin records and route records.
Also fixes a bug that caused record downloads to have incorrect datetimes strings. This was due to Date objects being added to the Excel sheet; the xlsx plugin presumably converts them to datetime strings using the machine's local timezone, which in Cloud Functions's case isn't Eastern. We now add correctly formatted datetime strings instead of letting xlsx handle Date objects.
Implements date selection ranges for getting records. Implemented for both checkin records and route records.
Also fixes a bug that caused record downloads to have incorrect datetimes strings. This was due to Date objects being added to the Excel sheet; the
xlsx
plugin presumably converts them to datetime strings using the machine's local timezone, which in Cloud Functions's case isn't Eastern. We now add correctly formatted datetime strings instead of lettingxlsx
handle Date objects.How to test
npm i
npm start