• Resolved DC38746

    (@dc38746)


    I’m seeing this error in the javascript console, “Given timezone not valid.” But I’m not sure what timezone it refers to or how to fix it. The button still works, I just hate seeing the error notice. Is this a known issue, any suggestions? This is the button shortcode that I’m testing:

    [add-to-calendar-button name=”Event Title” options=”‘iCal'” startDate=”2025-06-17″ startTime=”15:00″ endTime=”16:30″ timeZone=”Europe/Paris” location=”Location Test” organizer=”Organizer|[email protected]” description=”Event Description”]

    I still get the error if I omit the timeZone parameter. I’ve tried changing the WordPress timezone to some more common like Los Angeles and that doesn’t seem to change anything.

    Any suggestions would be much appreciated, thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Jens Kuerschner

    (@jekuer)

    Can you share the page where you have implemented this as well as the plugin version number you are using?

    I cannot reproduce the issue with your code.

    Same error. I have an additional button (with timezone CDT) at the end of the page that generate an error, the displayed button(s) are using the currentBrowser for TimeZone

    Plugin version: Version 2.8.5 


    <add-to-calendar-button
    name="Event Series"
    dates='[
    {
    "name":"Learning Session 1: Housing, Parents, and the Data Driving the Theory of Change",
    "description":"Join us for a one-hour virtual learning session where recent doctoral research meets ACC’s Theory of Change. Two ACC staff who recently completed their dissertations will share findings from in-depth studies on our students that directly inform the Meet Basic Needs pillar of our ToC. Read more at [url]https://oira.austincc.edu/initiatives-and-evaluations/research-spotlight/[/url]",
    "startDate":"2025-11-14",
    "startTime":"11:00",
    "endTime":"12:00"
    },
    {
    "name":"Learning Session 2: Belonging, Engagement, and the Data Driving the Theory of Change",
    "description":"Continue learning in our second 60-minute virtual session, focused on the Belonging & Connection pillar of the Theory of Change. This session weaves together doctoral research and institutional data on belonging, well-being, and academic success for ACC students. Read more at [url]https://oira.austincc.edu/initiatives-and-evaluations/research-spotlight/#second[/url]",
    "startDate":"2025-11-21",
    "startTime":"10:00",
    "endTime":"11:00"
    }
    ]'
    timeZone="CDT"
    location="https://oira.austincc.edu/initiatives-and-evaluations/research-spotlight/"
    options="'Google'"
    lightMode="bodyScheme"
    Plugin Contributor Jens Kuerschner

    (@jekuer)

    Confirmed. Will think of a solution there.
    Problem is that the official IANA time zone would be “CST6CDT“. But that the currentBrowser picks up the “wrong” one is a problem. Maybe we can sneak CST and CDT as individual ones in or rewrite them to the official one.

    Will keep you posted.

    thank you! I am using CST6CDT now. Have a beautiful day.

    Plugin Contributor Jens Kuerschner

    (@jekuer)

    This should be mitigated with the latest update. At least for the “currentBrowser” setting.

    When you set the Time Zone manually, please use a valid IANA time zone.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.