Events Made Easy › Forums › How do I … › One Problem – Several Questions – ICAL
- This topic has 10 replies, 2 voices, and was last updated 9 years, 7 months ago by Franky.
-
AuthorPosts
-
Sun 5 Apr 2015 at 05:01 #53944AnonymousInactive
Franky,
I am trying to do something rather simple, just insert the ICAL link into of my events. I only want the ICAL to contain the information for that specific event. I’ve tried using [eme_ical_link] but cannot get the syntax right, or even close.
1. When I read the dcomentation on [eme_ical_link] it says “see the explanation for [events_list]” but that topic does not exist. Is that supposed to read “see the explanation for [eme_events]“?
2. I looked at various samples you have posted. They all seem to do what I want. However, none of the examples document the code/syntax/etc…only the final output. It’s nice to see what the plugin can do, but it would be even better if one see how you accomplished this.
3. I played around with arguments documented in [eme_events] and have mixed results. Currently, I am using [eme_ical_link scope=2015-06-05 limit=1] hoping to create a ICAL for the one event I have on 2015-6-5. It is not working, I am getting all events in the ICAL…and they are using the current date/time instead of the date/time of the event. Any help?
Thanks in advance.
Josh
Sun 5 Apr 2015 at 08:06 #53948FrankyKeymasterI updated the doc. The shortcode you’re using is for ical info on a list of events, not one. Use #_ICALLINK.
Sun 5 Apr 2015 at 17:03 #53950AnonymousInactiveThanks for updating that. However, the ICAL links are not coming thru with the events’ date/time info, but intead with the current date/time. When I open the ICAL links from your examples, they work fine. Can you point me in the right direction?
Thanks again…
Sun 5 Apr 2015 at 22:38 #53951FrankyKeymaster#_ICALLINK only gets replaced correctly inside the “single event format” and “event list format” settings, maybe that’s what’s wrong?
Do you have an example? And the date/time info in the backend for that event? And also: what is the EME version you’re using?Sun 5 Apr 2015 at 23:36 #53952AnonymousInactiveHere is a single event that does this. The event date is 06/05/2015 and the event time is 05:45PM – 09:00PM.
Here is a reoccuring event that behaves the same way for me. This event happens on the 2nd Thu of each month, from 08:00PM-09:00PM.I am at version 1.5.32 (updated last night before I made this post). I was having the same issue before and after the update.
Mon 6 Apr 2015 at 10:59 #53965FrankyKeymasterYour theme is adding empty lines at the beginning of the output (see the html-source of your pages), it shouldn’t do that.
Solve that and your ical will work too.Mon 6 Apr 2015 at 14:10 #53966AnonymousInactiveComparing the ICS file from your example to mine – mine is missing the time zone in the DTSTART and DTEND lines. If I manually edit the ICS and add a a timezone, it works fine. I don’t see how the empty line 1 is a cause here. I’m still looking for the source of the empty line, however.
Mon 6 Apr 2015 at 14:19 #53967FrankyKeymasterThe timezone comes from the wordpress settings. is that setting correct?
Many ical interpreters have difficulties with empty lines (the same goes for RSS feeds btw)Mon 6 Apr 2015 at 14:34 #53968AnonymousInactiveI was able to remove one of the blank lines, but not the other. I will have get help from the theme author to find the source of the blank line.
So, I changed themes (temporarily). The new theme DID NOT create any blank lines. However, the ICAL links still did the same thing.
Mon 6 Apr 2015 at 14:47 #53969AnonymousInactiveOK. Problem almost solved…
I changed the time zone setting within WP, from Manual Offset (UTC-5) to America/New York. The ICAL links are now coming in with the date/time…but they are ignoring the Daylight savings rule (all events are an hour behind).
I’m not sure what other problems I would create if I set the WP time zone to Atlantic Time (-4) – and so I’d prefer not to do that. I couldn’t find anything in the documentation about DST. Can you point me in the right direction?
Tue 7 Apr 2015 at 00:21 #54061FrankyKeymasterRead a bit here about ical problems and timezones: http://icalevents.com/2613-what-every-developer-ought-to-know-about-timezones-wrt-calendar-files/
In your case: it seems your reading application doesn’t understand UTC-xx or UTC+xx as a timezone value, and thus ignores it (reaction different depending on the application).
You then changed it to “America/New York”, which improved your situation but your application or your webserver doesn’t respect or know about the dst … so you should check the application you’re using.
Also, make sure your php is always up-to-date (at least the timezonedb: https://pecl.php.net/package/timezonedb )
Currently EME stores everything without timezone format, making it so that all times are local times. -
AuthorPosts
- The forum ‘How do I …’ is closed to new topics and replies.