• Resolved sevensoutbill

    (@sevensoutbill)


    Hi there! This may help folks needing to add times to startDate and endDate and also timezone offset to get accurate local times in Google events when using the plugin, Events Manager. There are some errors and omissions in this file regarding this. Here’s our updated code section in event-schema/includes/class-event-schema-em.php:

    date_default_timezone_set('America/Toronto');
    $time_zone_offset = date("P");
    $start_datetime = $start_date.'T'.$start_time.$time_zone_offset;
    $end_datetime = $end_date.'T'.$end_time.$time_zone_offset;
    $centralize_event = array(
    	"ID"         => $event_id,
    	"name"       => $name,
    	"description"=> $description,
    	"url"        => $event_url,
    	"start_date" => $start_datetime,
    	"end_date"   => $end_datetime,
    	"is_all_day" => $is_all_day,
    	"image"      => $image_url,
    );
Viewing 1 replies (of 1 total)
  • Plugin Author Xylus Themes

    (@xylus)

    Hello @sevensoutbil,

    Thank you for your help. We have added a timezone in the pro version of the plugin and it will work on the event level so if you have an event from multiple time zones it will work fine.

    If our plugin is helpful to you, we would appreciate it if you could post a review about it here. Thank you so much for helping us and others too.

    Thanks

    • This reply was modified 1 year, 3 months ago by Xylus Themes.
    • This reply was modified 1 year, 3 months ago by Xylus Themes.
Viewing 1 replies (of 1 total)
  • The topic ‘Adding times and timezone offset for EM’ is closed to new replies.