Skip to content

Commit

Permalink
Fixed an issue with datetime format for lambda function
Browse files Browse the repository at this point in the history
  • Loading branch information
rassokhina-e committed Jun 7, 2022
1 parent 29992dd commit 9d19c2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# Arbimon Release Notes

## v3.0.54 - May XX, 2022
## v3.0.55 - June XX, 2022

Resolved issues:

- Fixed an issue with datetime format for lambda function

## v3.0.54 - June 03, 2022

Resolved issues:

- #991 Fixed an issue with export recordings tags
- Fixed the issue with deleting users from projects

## v3.0.53 - May 17, 2022

Expand Down
2 changes: 1 addition & 1 deletion app/utils/upload-queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module.exports = {
// Convert datetime with timezone offsets for browser AudioMoth recordings
// https://github.com/rfcx/arbimon/commit/efa1a487ce672ecf3d81c45470511e3f46a69305
if (upload.info && upload.info.isUTC) {
const datetimeLocal = timezone ? moment.tz(upload_row.datetime, timezone).format('YYYY-MM-DD HH:mm:ss') : null;
const datetimeLocal = timezone ? moment.tz(upload_row.datetime, timezone).toISOString() : null;
upload_row.datetime = datetimeLocal? datetimeLocal : upload_row.datetime;
}
model.uploads.insertRecToList(upload_row, callback);
Expand Down

0 comments on commit 9d19c2c

Please sign in to comment.