From 6d29eb5632ece9d398a0842d9db30bb42a2c7525 Mon Sep 17 00:00:00 2001 From: Ihor Brazhnichenko Date: Mon, 14 Nov 2022 11:09:22 +0200 Subject: [PATCH] #23 Fix dates format --- app/branding.js | 5 +++-- app/sections/operations/operations-table.directive.js | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/branding.js b/app/branding.js index 148210b..20de541 100644 --- a/app/branding.js +++ b/app/branding.js @@ -9,7 +9,7 @@ export function getAvailableEndpoints() { translate: 'Mainnet', url: 'https://api.bitshares.ws/openexplorer', chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8', - isDefault: true, + isDefault: false, }, { key: "testnet", @@ -21,7 +21,8 @@ export function getAvailableEndpoints() { key: "local", translate: 'Local', url: 'http://localhost:5000/openexplorer', - chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8' + chainId: '4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8', + isDefault: true, } ]; } diff --git a/app/sections/operations/operations-table.directive.js b/app/sections/operations/operations-table.directive.js index f311245..ff5c079 100644 --- a/app/sections/operations/operations-table.directive.js +++ b/app/sections/operations/operations-table.directive.js @@ -150,7 +150,7 @@ 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; @@ -158,7 +158,7 @@ Use this field show / hide user filters 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,