xyhp915 / logseq-journals-calendar

A journals calendar for Logseq.
MIT License
151 stars 11 forks source link

Wrong day highlighted #15

Closed mikejones3 closed 1 year ago

mikejones3 commented 2 years ago
image

AS you can see in the image above its highlighting the 27th of July and it is actually the 30th of July.

mikejones3 commented 2 years ago

A restart fixed it, but not sure how it got stuck :-)

aalhendi commented 2 years ago

Steps to reproduce:

  1. Open logseq
  2. Wait until a day transition happens (past midnight/00:00)
  3. Check calendar plugin

Likely Causes:

The app sets a state variable in App.vue L68 to hold the highlighted date. This date is not being updated past midnight.

Possible Fixes:

Check the date on calendar open by comparing the day property of the stored date with the day property of a newly generated date.

josh-sweaney commented 1 year ago

Came here to report this same issue. If LogSeq is left open overnight (I usually just leave it running in the background all the time) then the calendar never updates to the correct date without a restart.

nhalstead commented 1 year ago

Came here to report this same issue.

xxchan commented 1 year ago

A tip: reload can also fix it

image