Title: Javascript error &#8220;Given timezone not valid. &#8220;
Last modified: May 21, 2025

---

# Javascript error “Given timezone not valid. “

 *  Resolved [DC38746](https://wordpress.org/support/users/dc38746/)
 * (@dc38746)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/)
 * 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|emailtest@organizertest.com” 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](https://wordpress.org/support/users/jekuer/)
 * (@jekuer)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18477445)
 * 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.
 *  [ike76](https://wordpress.org/support/users/ike76/)
 * (@ike76)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18701790)
 * 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
 *     ```wp-block-code
       Plugin version: Version 2.8.5 <add-to-calendar-buttonname="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](https://wordpress.org/support/users/jekuer/)
 * (@jekuer)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18701827)
 * Confirmed. Will think of a solution there.
   Problem is that the official IANA 
   time zone would be “[CST6CDT](https://en.wikipedia.org/wiki/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.
 *  [ike76](https://wordpress.org/support/users/ike76/)
 * (@ike76)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18702805)
 * thank you! I am using CST6CDT now. Have a beautiful day.
 *  Plugin Contributor [Jens Kuerschner](https://wordpress.org/support/users/jekuer/)
 * (@jekuer)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18705655)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-error-given-timezone-not-valid%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/add-to-calendar-button/assets/icon.svg?rev=2849393)
 * [Add to Calendar Button](https://wordpress.org/plugins/add-to-calendar-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-calendar-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-calendar-button/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-calendar-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-calendar-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-calendar-button/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jens Kuerschner](https://wordpress.org/support/users/jekuer/)
 * Last activity: [5 months, 1 week ago](https://wordpress.org/support/topic/javascript-error-given-timezone-not-valid/#post-18705655)
 * Status: resolved