Correctly format dates for the SQL queries.
Correctly format dates for the SQL queries.

This prevents warnings and speeds up the queries considerably.

Hopefully there are no problems with regards to timezones.

lmeijvogel/meter-reader-api