obsidian-calendar-plugin icon indicating copy to clipboard operation
obsidian-calendar-plugin copied to clipboard

Timezone on Linux

Open bd-g opened this issue 2 years ago • 0 comments

Describe the bug

Calendar does not appear to refresh properly on Linux when the timezone is updated. Dots on the calendar disappear on time zone update.

Then, since the dots are gone, if you try to create a new note on a date that already has an existing note behind the scenes, Calendar says "File does not exist. Would you like to create it?". If you click yes, it then fails "Unable to create new file" (because it already exists, just calendar sidebar doesn't recognize it after the timezone change).

Steps to reproduce

  1. Open Calendar sidebar pane with dots showing existing daily notes.
  2. In a terminal, use timezonectl to change the timezone, for example: timedatectl set-timezone America/Detroit if you aren't already in Eastern Standard Timezone
  3. Go back to Obsidian, and click "Next Month" on the calendar sidebar to force a refresh.
  4. Dots on calendar will disappear.
  5. Side note: if you revert back to the original time zone, the dots reappear. Alternatively, if you close Obsidian while in the "new" timezone and reopen it, the Calendar plugin reloads properly and shows your dots.

Expected behavior

Calendar refresh while Obsidian is running should be consistent on Linux - daily notes should still appear.

Screenshots

Calendar sidebar before changing timezone

image

Calendar sidebar after changing timezone

image

Calendar sidebar after reverting back to original timezone

image

Environment

OS

Linux

Obsidian Version

Obsidian v1.0.3

Calendar Plugin v1.5.10

Theme:

Bug appears on both default Obsidian theme and "Minimal" theme

bd-g avatar Nov 22 '22 17:11 bd-g