flovida
Forum Replies Created
-
topic as resolved! Thanks!
topic as resolved!
How can I make that ica.php gives only the event time without adding or removing the standard local time?
From my point of view you can also leave the event time like it is, as the event takes place in London. In this way you will have always the reference to the place where the event takes place. We must hope that EM develops the ical and google calendar systems in a way that everybody can use the functionalities best.
Try: Europe/London GMT+00:00 and see in your calendar
events london 08.00 23.30 >>>> Varsavia = GMT+01:00 09.00 00.30my google calendar 02 07 2014
https://www.dropbox.com/s/jbaarv0tjy6xaap/eventdemolondon.pngOK! now you have the local time GMT+1Rome
my event start 02 07 2014 – 08.00 to 23.30
my google calendar: https://www.dropbox.com/s/xyksetz6rwhyw2w/eventdemo.pngyou should have the Local time and time zone reference.
Google Calendar calculates the real UTC.
try my event
https://www.google.com/calendar/event?action=TEMPLATE&text=Palio+di+siena+2+Juli&ctz=Europe/Rome&dates=20140702T080000/20140702T233000&details=Palio+di+siena+2+Juli&location=Siena&trp=false&sprop=http%3A%2F%2Fwww.welcometomaremma.com%2Ftoskanaitalien%2Fevents%2Fpalio-di-siena-2-juli-2014-07-02%2F&sprop=name:Toskana+Italien+-+Der+Toskana-Blog
Hi @joannarejdych,
For Google calendar I’ve done it in this way and works:
substituted the lines 1708 and 1709 with the following code$dateStart = date('Ymd',$this->start); $dateEnd = date('Ymd',$this->start);
substituted the line 1715 with the following code
$gcal_url = 'https://www.google.com/calendar/event?action=TEMPLATE&text=event_name&ctz=Europe/Rome&dates=start_date/end_date&details=post_content&location=location_name&trp=false&sprop=event_url&sprop=name:blog_name';
Substitute Europe/Rome with your geographic area
the file is: em-event.php in wp-content/plugins/events-manager/classes
Hi @joannarejdych,
I’ve done it in this way (but should be fixed by the plugin-creators):substituted from line 34 until 40 the following code
$dateStart = ':'.get_gmt_from_date($EM_Event->event_start_date.' '.$EM_Event->event_start_time, 'Ymd\THis'); $dateEnd = ':'.get_gmt_from_date($EM_Event->event_end_date.' '.$EM_Event->event_end_time, 'Ymd\THis'); } if( !empty($EM_Event->event_date_modified) && $EM_Event->event_date_modified != '0000-00-00 00:00:00' ){ $dateModified = get_gmt_from_date($EM_Event->event_date_modified, 'Ymd\THis'); }else{ $dateModified = get_gmt_from_date($EM_Event->post_modified, 'Ymd\THis');
substituted the lines 69 and 70 with the following code
DTSTART;VALUE=DATE-TIME{$dateStart} DTEND;VALUE=DATE-TIME{$dateEnd}
unfortunately I was not able to understand in which part of the code is removed or added the standard time.
You can fix DSTART and DTEND considering the following syntax:
DTSTART:20140714T133000 ;Local time
DTSTART:20140714T123000Z ;UTC time
DTSTART;Europe/Rome:20140714T133000 ;Local time and time
; zone referenceHi,
I’ve changed the em-event.php situated in /wp-content/plugins/events-manager/classes
could you please have a look at my page and try to add the following event and you will see that independently from your geographic area the event will be added with the standard time in Rome. This allows to everone to have the correct time in respect to the own standard time. You will see in google calendar the field “(GMT+01:00) Roma”that will indicate you to which standard time the event is referred.https://www.welcometomaremma.com/toskanaitalien/events/palio-di-siena-2-juli-2014-07-02/
I wanted to modify also the file ical.php, thus ical me shows the inserted time without changing it because of the standard time.
How can I do this?
Please give me some time an I will pass you my modifie file!
As it is now, EM passes to Google Calendar a wrong value, as it doesn’t calculate the daylight saving time (in Italy it is this year on 30th March and on 26th October).
Demo of your events are interpreted in the wrong way
This is the event: https://demo.wp-events-plugin.com/events/jeff-foxworthy-main/
This is what my Google Calendar importes: https://dl.dropboxusercontent.com/u/8768599/eventsmanager/calendarEM.png
the solution I’ve proposed you is the most simplest one to solve this problem. There are more complex solutions that might be analizedThe solution is to remove Z at the end of the time, as from the examples:
Google Calendar:
https://www.google.com/calendar/event?action=TEMPLATE&text=Event+29+marzo&dates=20140329T080000Z/20140329T220000Z&details=………this must be
File .ics
DTSTART:20140529T090000Z
DTEND:20140529T230000Zshould be
DTSTART;VALUE=DATE-TIME:20140529T090000
DTEND;VALUE=DATE-TIME:20140529T230000I’ve made several tries and I think that it is possible to solve the problem without any calculations, using the local time (the one inserted inside of the event).
The solution is to remove Z at the end of the time, as from the examples:
Google Calendar:
https://www.google.com/calendar/event?action=TEMPLATE&text=Event+29+marzo&dates=20140329T080000Z/20140329T220000Z&details=………this must be
File .ics
DTSTART:20140529T090000Z
DTEND:20140529T230000Zshould be
DTSTART;VALUE=DATE-TIME:20140529T090000
DTEND;VALUE=DATE-TIME:20140529T230000Please let me know if it is possible to do it.
Hi Marcus,
I’ve substituted as you told me, but it seems that everything is still working in the same way. I’ve resaved the event I have tested, as I wasn’t sure if Ical was created at the moment I create the event.The problem is to have the real UTC that is the same all over the world. The only way to pass the dates to google calendar is to remove the time zone and the summer time.
As you can see from this image
https://dl.dropboxusercontent.com/u/4304011/eventsmanager/timezonerome.png
WP knows the real time, local time and when needs to be applied the summer time (daylight saving time).From my point of view, the best solution is to use the WP info to make use best the cal on EM.