Skip to content

Commit

Permalink
#23 Fix dates format
Browse files Browse the repository at this point in the history
  • Loading branch information
ihorml committed Nov 14, 2022
1 parent 9a1fc74 commit 6d29eb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/branding.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getAvailableEndpoints() {
translate: 'Mainnet',
url: 'https://api.bitshares.ws/openexplorer',
chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8',
isDefault: true,
isDefault: false,
},
{
key: "testnet",
Expand All @@ -21,7 +21,8 @@ export function getAvailableEndpoints() {
key: "local",
translate: 'Local',
url: 'http://localhost:5000/openexplorer',
chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8'
chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8',
isDefault: true,
}
];
}
Expand Down
4 changes: 2 additions & 2 deletions app/sections/operations/operations-table.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ Use this field show / hide user filters
$scope.userOpenedFirstPageTime = new moment();
}

const date_to = $scope.userOpenedFirstPageTime.format("YYYY-DD-MM");
const date_to = $scope.userOpenedFirstPageTime.format("YYYY-MM-DD");

$scope.operationsLoading = true;
$scope.operationsLoadingError = false;
OperationsService.getOperationsHistory({
limit,
offset,
date_to,
date_from: $scope.extendedDateFrom ? $scope.extendedDateFrom.format("YYYY-DD-MM") : filtersDefined() ? $scope.filtersDateFrom : $scope.defaultDateFrom || undefined,
date_from: $scope.extendedDateFrom ? $scope.extendedDateFrom.format("YYYY-MM-DD") : filtersDefined() ? $scope.filtersDateFrom : $scope.defaultDateFrom || undefined,
assetId: $scope.filters.assetIdOrName,
accountId: $scope.groupByAccountId || $scope.filters.accountIdOrName,
creditOfferId: $scope.groupByCreditOfferId,
Expand Down

0 comments on commit 6d29eb5

Please sign in to comment.