I’m trying to embed a Google Calendar in my website using an iframe with DAY mode, but I’m running into a weird issue.
The Problem
When I set up the iframe with mode=DAY, the calendar shows yesterday’s date instead of today. For example, if today is December 27th, 2023, the calendar displays December 26th instead.
What I Need
I want to display the current day’s view in DAY mode (not the agenda view). The agenda mode works fine and shows the correct date, but I specifically need the DAY view format.
What I Found
I checked the page source and noticed that the preloadStart and preloadEnd variables are getting set to the previous day. So when today should be 20231227, these variables show 20231226 instead.
My Question
Has anyone encountered this date offset issue with Google Calendar embeds? Is there a way to force the DAY mode to display today’s date correctly, or is this a known bug with the embedding feature?