changed date/time to local time

actions/getsensorData.js
   - interpret given date/time as local time and convert ist to UTC for database

databases/influx.js
   - log for 'read' added

utilities/logit.js
   - print time in local time

sensorspecials/noise.js
   - print starttime im options as local time
   - remove 'zone:utc' from every time function
This commit is contained in:
rxf
2023-05-25 09:24:12 +02:00
parent 969a37b8c6
commit 5d10f681ea
4 changed files with 15 additions and 11 deletions
+1
View File
@@ -19,6 +19,7 @@ const INFLUXURL_WRITE = `http://${INFLUXHOST}:${INFLUXPORT}/api/v2/write?org=${I
export const influxRead = async (query) => {
let start = DateTime.now()
logit(`ReadInflux from ${INFLUXURL_READ}`)
let erg = { values: [], err: null}
try {
let ret = await axios({