diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index 1403b7d0d..e5dc187ff 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -23,7 +23,6 @@ import { AssetProfileIdentifier, Benchmark } from './interfaces'; import { BenchmarkTrend, ColorScheme } from './types'; export const DATE_FORMAT = 'yyyy-MM-dd'; -export const DEFAULT_FORMAT = 'yyyy-MM-dd'; export const DATE_FORMAT_MONTHLY = 'MMMM yyyy'; export const DATE_FORMAT_YEARLY = 'yyyy'; diff --git a/libs/ui/src/lib/account-balances/account-balances.component.ts b/libs/ui/src/lib/account-balances/account-balances.component.ts index 32f18d027..706e079e0 100644 --- a/libs/ui/src/lib/account-balances/account-balances.component.ts +++ b/libs/ui/src/lib/account-balances/account-balances.component.ts @@ -2,7 +2,7 @@ import { CreateAccountBalanceDto } from '@ghostfolio/api/app/account-balance/cre import { ConfirmationDialogType } from '@ghostfolio/client/core/notification/confirmation-dialog/confirmation-dialog.type'; import { NotificationService } from '@ghostfolio/client/core/notification/notification.service'; import { validateObjectForForm } from '@ghostfolio/client/util/form.util'; -import { DEFAULT_FORMAT, getLocale } from '@ghostfolio/common/helper'; +import { DATE_FORMAT, getLocale } from '@ghostfolio/common/helper'; import { AccountBalancesResponse } from '@ghostfolio/common/interfaces'; import { @@ -115,7 +115,7 @@ export class GfAccountBalancesComponent const accountBalance: CreateAccountBalanceDto = { accountId: this.accountId, balance: this.accountBalanceForm.get('balance').value, - date: format(this.accountBalanceForm.get('date').value, DEFAULT_FORMAT) + date: format(this.accountBalanceForm.get('date').value, DATE_FORMAT) }; try {