Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhwebworks/7321079 to your computer and use it in GitHub Desktop.
Save bhwebworks/7321079 to your computer and use it in GitHub Desktop.
/**
* Filter Event Organiser to use the timezone set in WordPress settings
*
* Uses a filter hook found in includes/class-eo-ical-parser.php
*
* @link http://blackhillswebworks.com/?p=5108
*/
add_filter( 'eventorganiser_ical_timezone', 'bhww_eo_set_timezone' );
function bhww_eo_set_timezone( $tz ) {
$tz = eo_get_blog_timezone();
return $tz;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment