fix the invalid month in the mobile version transaction list page

This commit is contained in:
MaysWind
2024-08-12 22:44:48 +08:00
parent 753fc762a0
commit 8b531cc726
+2 -1
View File
@@ -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);