Skip to content

Commit

Permalink
correct timestampe
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Mar 16, 2024
1 parent 2d344b7 commit 10741bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2730,6 +2730,7 @@ class VwWeconnect extends utils.Adapter {
},
})
.then(async (res) => {
const timestamp = Date.now();
this.log.debug(JSON.stringify(res.data));
const data = {};
for (const key in res.data) {
Expand All @@ -2756,7 +2757,7 @@ class VwWeconnect extends utils.Adapter {
forceIndex: true,
makeStateWritableWithEnding: ["settings"],
});
this.setOtherStatesInChannelNull(vin + ".status.accessStatus", Date.now());
this.setOtherStatesInChannelNull(vin + ".status.accessStatus", timestamp - 1000);

if (this.config.rawJson) {
await this.setObjectNotExistsAsync(vin + ".status" + "rawJson", {
Expand Down

0 comments on commit 10741bc

Please sign in to comment.