• Resolved riaface

    (@riaface)


    Hello again! When testing the ‘Export to Google Calendar’ button following checkout, the Google Calendar event populates with the wrong time – it’s an hour behind. For example, my event’s 2-4pm, and Google Calendar populates 3-5pm. Any idea how to fix this, and how to disable the button altogether if I need to?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @riaface,

    We have made some tests and we found an issue with time zones. We will apply the fix on the next plugin version. You can implement it now, just edit the following code…

    Go to line 250 from the next file.

    yith-event-tickets-for-woocommerce\includes\functions.yith-wcevti.php

    Just replace the next line…:

    $dates = '&dates=' . $start_date . 'T' . $start_time . '00Z/' . $end_date . 'T' . $end_time . '00Z'

    By the following line…:

    $dates = '&dates=' . $start_date . 'T' . $start_time . '00/' . $end_date . 'T' . $end_time . '00';

    As you see, we just removed Z args from URL. This value force Google Calendar to change the time zone exported.

    Please try it and let me know if you find some problem. ??

    Thread Starter riaface

    (@riaface)

    Looks good! Thanks for your help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Export to Google Calendar has incorrect time’ is closed to new replies.