mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
fix the invalid month in the mobile version transaction list page
This commit is contained in:
@@ -523,6 +523,7 @@ import {
|
|||||||
getTimezoneOffsetMinutes,
|
getTimezoneOffsetMinutes,
|
||||||
getBrowserTimezoneOffsetMinutes,
|
getBrowserTimezoneOffsetMinutes,
|
||||||
getActualUnixTimeForStore,
|
getActualUnixTimeForStore,
|
||||||
|
getYearMonthFirstUnixTime,
|
||||||
getShiftedDateRangeAndDateType,
|
getShiftedDateRangeAndDateType,
|
||||||
getDateTypeByDateRange,
|
getDateTypeByDateRange,
|
||||||
getDateRangeByDateType
|
getDateRangeByDateType
|
||||||
@@ -1088,7 +1089,7 @@ export default {
|
|||||||
scrollToSelectedItem(event.$el, '.popover-inner', 'li.list-item-selected');
|
scrollToSelectedItem(event.$el, '.popover-inner', 'li.list-item-selected');
|
||||||
},
|
},
|
||||||
getDisplayYearMonth(transactionMonthList) {
|
getDisplayYearMonth(transactionMonthList) {
|
||||||
return this.$locale.formatTimeToLongYearMonth(this.userStore, transactionMonthList.yearMonth);
|
return this.$locale.formatUnixTimeToLongYearMonth(this.userStore, getYearMonthFirstUnixTime(transactionMonthList.yearMonth));
|
||||||
},
|
},
|
||||||
getDisplayTime(transaction) {
|
getDisplayTime(transaction) {
|
||||||
return this.$locale.formatUnixTimeToShortTime(this.userStore, transaction.time, transaction.utcOffset, this.currentTimezoneOffsetMinutes);
|
return this.$locale.formatUnixTimeToShortTime(this.userStore, transaction.time, transaction.utcOffset, this.currentTimezoneOffsetMinutes);
|
||||||
|
|||||||
Reference in New Issue
Block a user