mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
utc in request
This commit is contained in:
@@ -11,6 +11,8 @@ import { AppFormElement, InputFieldElement } from 'components/';
|
|||||||
import { BasePageElement } from 'common/';
|
import { BasePageElement } from 'common/';
|
||||||
import { AppDropdownElement } from 'components/app-dropdown/AppDropdownElement';
|
import { AppDropdownElement } from 'components/app-dropdown/AppDropdownElement';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import utc from 'dayjs/plugin/utc';
|
||||||
|
dayjs.extend(utc);
|
||||||
|
|
||||||
@controller
|
@controller
|
||||||
class SubscriptionCreateElement extends BasePageElement {
|
class SubscriptionCreateElement extends BasePageElement {
|
||||||
@@ -118,8 +120,8 @@ class SubscriptionCreateElement extends BasePageElement {
|
|||||||
endDate,
|
endDate,
|
||||||
} = values;
|
} = values;
|
||||||
|
|
||||||
const startDateFormat = dayjs(startDate).format();
|
const startDateFormat = dayjs(startDate).utc(true).format();
|
||||||
const endDateFormat = dayjs(endDate).format();
|
const endDateFormat = dayjs(endDate).utc(true).format();
|
||||||
|
|
||||||
const walletData = this.walletData;
|
const walletData = this.walletData;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import { RouterService } from 'core/services';
|
|||||||
import { BasePageElement } from 'common/';
|
import { BasePageElement } from 'common/';
|
||||||
import { AppDropdownElement } from 'components/app-dropdown/AppDropdownElement';
|
import { AppDropdownElement } from 'components/app-dropdown/AppDropdownElement';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import utc from 'dayjs/plugin/utc';
|
||||||
|
dayjs.extend(utc);
|
||||||
|
|
||||||
@controller
|
@controller
|
||||||
class TransactionCreateElement extends BasePageElement {
|
class TransactionCreateElement extends BasePageElement {
|
||||||
@@ -93,7 +95,7 @@ class TransactionCreateElement extends BasePageElement {
|
|||||||
transactionDate,
|
transactionDate,
|
||||||
} = values;
|
} = values;
|
||||||
|
|
||||||
const formattedDate = dayjs(transactionDate).format();
|
const formattedDate = dayjs(transactionDate).utc(true).format();
|
||||||
|
|
||||||
const walletData = this.walletData;
|
const walletData = this.walletData;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user