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:
@@ -6,6 +6,8 @@ import { RouterService } from 'core/services';
|
||||
import { BasePageElement } from 'common/';
|
||||
import { AppDropdownElement } from 'components/app-dropdown/AppDropdownElement';
|
||||
import dayjs from 'dayjs';
|
||||
import utc from 'dayjs/plugin/utc';
|
||||
dayjs.extend(utc);
|
||||
|
||||
@controller
|
||||
class TransactionCreateElement extends BasePageElement {
|
||||
@@ -93,7 +95,7 @@ class TransactionCreateElement extends BasePageElement {
|
||||
transactionDate,
|
||||
} = values;
|
||||
|
||||
const formattedDate = dayjs(transactionDate).format();
|
||||
const formattedDate = dayjs(transactionDate).utc(true).format();
|
||||
|
||||
const walletData = this.walletData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user