From 8b531cc7260f05200de1a77b1a7cb270701bb2fd Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 12 Aug 2024 22:44:48 +0800 Subject: [PATCH] fix the invalid month in the mobile version transaction list page --- src/views/mobile/transactions/ListPage.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/mobile/transactions/ListPage.vue b/src/views/mobile/transactions/ListPage.vue index 493b5469..6970d776 100644 --- a/src/views/mobile/transactions/ListPage.vue +++ b/src/views/mobile/transactions/ListPage.vue @@ -523,6 +523,7 @@ import { getTimezoneOffsetMinutes, getBrowserTimezoneOffsetMinutes, getActualUnixTimeForStore, + getYearMonthFirstUnixTime, getShiftedDateRangeAndDateType, getDateTypeByDateRange, getDateRangeByDateType @@ -1088,7 +1089,7 @@ export default { scrollToSelectedItem(event.$el, '.popover-inner', 'li.list-item-selected'); }, getDisplayYearMonth(transactionMonthList) { - return this.$locale.formatTimeToLongYearMonth(this.userStore, transactionMonthList.yearMonth); + return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthFirstUnixTime(transactionMonthList.yearMonth)); }, getDisplayTime(transaction) { return this.$locale.formatUnixTimeToShortTime(this.userStore, transaction.time, transaction.utcOffset, this.currentTimezoneOffsetMinutes);