mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 16:07:33 +08:00
add transaction timezone offset to axis / category / series in insights explorer
This commit is contained in:
@@ -43,6 +43,7 @@ import {
|
||||
isEquals,
|
||||
} from '@/lib/common.ts';
|
||||
import {
|
||||
getUtcOffsetByUtcOffsetMinutes,
|
||||
parseDateTimeFromUnixTime,
|
||||
parseDateTimeFromUnixTimeWithTimezoneOffset,
|
||||
getDateRangeByDateType,
|
||||
@@ -289,6 +290,13 @@ export const useExplorersStore = defineStore('explorers', () => {
|
||||
categoryIdType: TransactionExplorerDimensionType.Other,
|
||||
categoryDisplayOrders: [dateTime.getHour()]
|
||||
};
|
||||
} else if (dimension === TransactionExplorerDataDimension.TimezoneOffset) {
|
||||
return {
|
||||
categoryName: getUtcOffsetByUtcOffsetMinutes(transaction.utcOffset),
|
||||
categoryId: transaction.utcOffset.toString(10),
|
||||
categoryIdType: TransactionExplorerDimensionType.Other,
|
||||
categoryDisplayOrders: [transaction.utcOffset]
|
||||
};
|
||||
} else if (dimension === TransactionExplorerDataDimension.TransactionType) {
|
||||
let transactionTypeName = 'Unknown';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user