diff --git a/ui/src/router/views/import-generic.vue b/ui/src/router/views/import-generic.vue index f7c8545..594017d 100644 --- a/ui/src/router/views/import-generic.vue +++ b/ui/src/router/views/import-generic.vue @@ -122,7 +122,7 @@ export default { item[k] = setFullTank(row) } else if (this.invertFullTank) { item[k] = !row[headings[k]] - } else if ('date') { + } else if (k === 'date') { item[k] = new Date(row[headings[k]]).toISOString() } else { item[k] = row[headings[k]] @@ -138,7 +138,7 @@ export default { const content = { data: this.csvToJson(), vehicleId: this.selectedVehicle.Id, - timezone: this.getTimezone() + timezone: this.getTimezone(), } axios .post('/api/import/generic', content) @@ -200,7 +200,9 @@ export default {
There was an error logging in to your account.