Skip to content

Commit

Permalink
Merge pull request #1583 from telefonicaid/fix/badtiestamp_error_is_p…
Browse files Browse the repository at this point in the history
…rogressing_to_cb

bad timestmap error should not progress to CB
  • Loading branch information
fgalan committed Feb 22, 2024
2 parents 18524dc + d6cf637 commit b1da0d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Hardening: simplify implementation so typeInformation contains global config values (#1515)
- Add: `POST /iot/op/delete` operation to delete multiple devices at once (#1578)
- Fix: store device subscriptions updates (#1086)
- Fix: badtimestamp error should not progress to ContextBroker
1 change: 1 addition & 0 deletions lib/services/ngsi/entities-NGSI-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ function sendUpdateValueNgsi2(entityName, measures, typeInformation, token, call
timestamp.value = plainMeasures[constants.TIMESTAMP_ATTRIBUTE];
} else {
callback(new errors.BadTimestamp(plainMeasures[constants.TIMESTAMP_ATTRIBUTE], entityName));
return;
}
} else if (!typeInformation.timezone) {
timestamp.value = new Date().toISOString();
Expand Down

0 comments on commit b1da0d0

Please sign in to comment.