Skip to content

Commit

Permalink
Merge pull request #1001 from rfcx/bug/fix-date-range-issue-on-the-fi…
Browse files Browse the repository at this point in the history
…lter-create-playlist

Fixed an issue with date range format to create a new playlist
  • Loading branch information
rassokhina-e authored Jun 20, 2022
2 parents 7890357 + edaf085 commit 270f92d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Arbimon Release Notes

## v3.0.55 - June XX, 2022
## v3.0.55 - June 22, 2022

Resolved issues:

- Fixed an issue with date range format to create a new playlist
- Fixed an issue with datetime format for lambda function

## v3.0.54 - June 03, 2022
Expand Down
7 changes: 6 additions & 1 deletion assets/app/app/audiodata/recordings/recordings.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ angular.module('a2.audiodata.recordings', [
this.searchRecs(['count', 'list']);
};
this.createPlaylist = function(filters) {
var listParams = filters;
var listParams = angular.merge({}, filters);

if(!Object.keys(listParams).length)
return;
Expand All @@ -108,6 +108,11 @@ angular.module('a2.audiodata.recordings', [
listParams.presence = listParams.presence[0]
}

if (listParams.range) {
listParams.range.from = moment(listParams.range.from).format('YYYY-MM-DD') + 'T00:00:00.000Z';
listParams.range.to = moment(listParams.range.to).format('YYYY-MM-DD') + 'T23:59:59.999Z';
}

var modalInstance = $modal.open({
controller: 'SavePlaylistModalInstanceCtrl',
templateUrl: '/app/audiodata/create-playlist.html',
Expand Down

0 comments on commit 270f92d

Please sign in to comment.