mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
improve homepage loading removing calendar timezone
This commit is contained in:
parent
21092b9b0e
commit
8eec45a6c6
3 changed files with 2 additions and 3 deletions
|
@ -5,7 +5,7 @@ export function attributesFromEvents(_events) {
|
||||||
let attributes = []
|
let attributes = []
|
||||||
const now = dayjs().unix()
|
const now = dayjs().unix()
|
||||||
for (let e of _events) {
|
for (let e of _events) {
|
||||||
const key = Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD')
|
const key = dayjs.unix(e.start_datetime).tz().format('MMDD') // Math.floor(e.start_datetime/(3600*24)) // dayjs.unix(e.start_datetime).tz().format('YYYYMMDD')
|
||||||
const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : ''
|
const c = (e.end_datetime || e.start_datetime) < now ? 'vc-past' : ''
|
||||||
|
|
||||||
if (e.multidate) {
|
if (e.multidate) {
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
@update:from-page='updatePage'
|
@update:from-page='updatePage'
|
||||||
:locale='$i18n.locale'
|
:locale='$i18n.locale'
|
||||||
:attributes='attributes'
|
:attributes='attributes'
|
||||||
:timezone='settings.instance_timezone'
|
|
||||||
transition='fade'
|
transition='fade'
|
||||||
aria-label='Calendar'
|
aria-label='Calendar'
|
||||||
is-expanded
|
is-expanded
|
||||||
|
|
|
@ -4,6 +4,6 @@ export default () => {
|
||||||
Vue.use(VCalendar, {
|
Vue.use(VCalendar, {
|
||||||
componentPrefix: 'vc',
|
componentPrefix: 'vc',
|
||||||
// why is that ?!
|
// why is that ?!
|
||||||
firstDayOfWeek: 2
|
// firstDayOfWeek: 2
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue