glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place
GNU Affero General Public License v3.0
8.56k stars 297 forks source link

Calendar shows one day ahead. #262

Closed WolfeCub closed 1 day ago

WolfeCub commented 2 days ago

image

Pretty much the title. I'm in EST and I notice that my calendar is a day ahead. My guess would be that this has something to do with time zones but I'm not 100% sure.

I don't see any config available for the calendar. An guidance would be greatly appreciated.

svilenmarkov commented 2 days ago

The calendar widget is currently rendered on the server and if Glance is running inside a container, it depends on having the correct /etc/timezone passed to it from the host. If you are running Glance inside a container, make sure to pass that as a volume:

volumes:
  - /etc/timezone:/etc/timezone:ro

In v0.7.0 the calendar will be rendered on the client, so it should always show the correct time regardless of the server timezone.

WolfeCub commented 1 day ago

Ah great, I went ahead and set the TZ env variable and that did the trick.

Thanks!