WordPress.org

Plugin Directory

Changeset 1733559 for event-post


Ignore:
Timestamp:
09/21/17 09:44:24 (3 months ago)
Author:
bastho
Message:

Pass CTZ param to GoogleCalendar only if timesone is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1733553 r1733559  
    749749                    'location'=>$address, 
    750750                    'details'=>$url, 
    751                     'ctz'=>$timezone_string, 
    752751                    'gmt'=> urlencode($gmt_offset) 
    753752                ), 'https://www.google.com/calendar/event'); 
     753                if(!empty($timezone_string)){ 
     754                  $google_url = add_query_arg(array( 
     755                      'ctz'=>$timezone_string, 
     756                  ), $google_url); 
     757                } 
    754758 
    755759                // format de date VCS 
Note: See TracChangeset for help on using the changeset viewer.