Feature request: Timezone parameter for Google Calendar

Permalink Browser Info Environment
We're using this addon to display a Google calendar that was added via the "Add By URL" feature. For whatever reason, the timezone is UTC, despite the source ICS having timezones explicitly defined.

Having a feature to specify a timezone (even if it's a free-form field where I can type "Country/City" timezone identifiers, or getting the Tz from the C5 installation) would be amazing.

Thoughts on this?

Type: Pre-Sale
Status: Resolved
Grayda
View Replies:
Grayda replied on at Permalink Reply
Grayda
To add some more information to this:

The "add by URL" calendar appearing as UTC is an issue I've raised with Google directly (https://productforums.google.com/forum/#!msg/calendar/3HLMGPtyGGU/KJm0i-4sAgAJ), so I'm aware that ultimately it's their issue, but I'd still like to request a way to set the timezone manually from the Event Calendar addon.
IceManSpy replied on at Permalink Reply
IceManSpy
I can't change date from Google API. It is not depend on me.

So if Google Calendar doesn't have this option, my calendar doesn't have option too.
lavalla replied on at Permalink Reply
lavalla
So after some research, it looks like this add-on is built on top ofhttp://fullcalendar.io/ which has an option for timezones. I was able to change view.php so that the timezone is passed just before the googleCalendarApiKey parameter

// ... other code from view.php above here ..
$("#dsEventCalendar<?php echo $blockIdentifier; ?>").fullCalendar({timezone:"Australia/Melbourne",googleCalendarApiKey:"<?php echo $api; ?>"
// ... remaining code from view..php below here ..


Doing this passes the timezone to Google Calendar API, which displays our calendar correctly. So it can be done, but just not by changing the calendar API call.

Hope this helps you out.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Add Multiple Pages (0.9.5), Editor Comment (7.0.1), Event Calendar PRO (2.3.11), Fileset Attribute (1.1), List files from set (1.0.7), Random Image (1.0), Sticky Notes (1.0.0), Thumb Gallery (1.0.3)

# concrete5 Overrides
blocks/page_title/templates/Parent_Title.php, blocks/page_title/templates, blocks/page_title, blocks/image_slider/templates/homepage_slider.php, blocks/image_slider/templates, blocks/image_slider, blocks/list_files_from_set/templates/download_icon.php, blocks/list_files_from_set/templates, blocks/list_files_from_set, blocks/express_entry_list/templates/uniform_dates.php.old, blocks/express_entry_list/templates/leadership_photo.php, blocks/express_entry_list/templates/careers_photo.php, blocks/express_entry_list/templates, blocks/express_entry_list, blocks/autonav/templates/bootstrap_menu.php, blocks/autonav/templates/breadcrumb.php, blocks/autonav/templates, blocks/autonav, blocks/vivid_thumb_gallery/templates/image_gallery_page.php, blocks/vivid_thumb_gallery/templates, blocks/vivid_thumb_gallery, themes/lavalla-theme/README.md, themes/lavalla-theme/lavalla-26-6-2017.sql, themes/lavalla-theme/js/jquery-1.11.1.js, themes/lavalla-theme/js/bootstrap.min.js, themes/lavalla-theme/js/bootstrap-submenu.min.js, themes/lavalla-theme/js/jquery-1.11.1.min.js, themes/lavalla-theme/js/jquery.js, themes/lavalla-theme/js/jquery-2.1.1.min.js, themes/lavalla-theme/js/less.js, themes/lavalla-theme/js/bootstrap.js, themes/lavalla-theme/js, themes/lavalla-theme/fonts/glyphicons-halflings-regular.eot, themes/lavalla-theme/fonts/glyphicons-halflings-regular.woff, themes/lavalla-theme/fonts/glyphicons-halflings-regular.svg, themes/lavalla-theme/fonts/glyphicons-halflings-regular.ttf, themes/lavalla-theme/fonts, themes/lavalla-theme/images/image-clip.svg, themes/lavalla-theme/images/main.jpg, themes/lavalla-theme/images/header-logo.png, themes/lavalla-theme/images/device.svg, themes/lavalla-theme/images/device.jpg, themes/lavalla-theme/images/logo.png, themes/lavalla-theme/images/header_bg.jpg, themes/lavalla-theme/images/sidebar-device.svg, themes/lavalla-theme/images/right-clip.svg, themes/lavalla-theme/images/clip.svg, themes/lavalla-theme/images/sidebar-device.png, themes/lavalla-theme/images/sample2.jpg, themes/lavalla-theme/images/header_end.jpg, themes/lavalla-theme/images/sample1.jpg, themes/lavalla-theme/images/sample3.jpg, themes/lavalla-theme/images/main-image.jpg, themes/lavalla-theme/images/1 header_end.jpg, themes/lavalla-theme/images, themes/lavalla-theme/elements/footer.php, themes/lavalla-theme/elements/header.php, themes/lavalla-theme/elements, themes/lavalla-theme/view.php, themes/lavalla-theme/description.txt, themes/lavalla-theme/default.php, themes/lavalla-theme/css/bootstrap.css, themes/lavalla-theme/css/main.css, themes/lavalla-theme/css/styles.less, themes/lavalla-theme/css/bootstrap.min.css, themes/lavalla-theme/css/less/bootstrap-tables.less, themes/lavalla-theme/css/less/helpers.less, themes/lavalla-theme/css/less/tables.less, themes/lavalla-theme/css/less/sizing.less, themes/lavalla-theme/css/less/branding.less, themes/lavalla-theme/css/less/links.less, themes/lavalla-theme/css/less/flex.less, themes/lavalla-theme/css/less/image-slider.less, themes/lavalla-theme/css/less/buttons.less, themes/lavalla-theme/css/less, themes/lavalla-theme/css/bootstrap-submenu.min.css, themes/lavalla-theme/css/styles.xml, themes/lavalla-theme/css/ie.less, themes/lavalla-theme/css, themes/lavalla-theme/homepage.php, themes/lavalla-theme/page_theme.php, themes/lavalla-theme

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
LiteSpeed

# Server API
litespeed

# PHP Version
5.6.25

# PHP Extensions
bcmath, bz2, calendar, Core, ctype, curl, date, dom, enchant, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, litespeed, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, uploadprogress, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 32M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.