mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-28 13:46:20 +02:00
fixed date
This commit is contained in:
parent
578b877c0c
commit
4a32807417
@ -105,6 +105,9 @@ export default {
|
||||
computed: {
|
||||
isAdminOrUp() {
|
||||
return this.$store.getters['user/getIsAdminOrUp']
|
||||
},
|
||||
user() {
|
||||
return this.$store.state.user.user
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -132,8 +135,8 @@ export default {
|
||||
this.showYearInReview = !this.showYearInReview
|
||||
},
|
||||
eventOptions() {
|
||||
if(this.$store.getters['libraries/getCurrentLibrary']) {
|
||||
const oldestDate = this.$store.getters['libraries/getCurrentLibrary'].createdAt
|
||||
if(this.user) {
|
||||
const oldestDate = this.user.createdAt
|
||||
if (oldestDate) {
|
||||
const date = new Date(oldestDate)
|
||||
const oldestYear = date.getFullYear()
|
||||
|
Loading…
Reference in New Issue
Block a user