Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Event Calendar: $_DATES for repeating events


Reply


4 Posts   2424 Views

Avatar
silk

Community Member, 18 Posts

7 November 2009 at 5:10am

Hi!

I have a repeated event in my calendar. $_DATES returns for example
09. Nov. 2009 - 15. Mar. 2010

That is not what I want. I'd like to get 09. Nov. 2009 only. Would it be possible to expand $_DATES so that in case of a repeating event only the current date is displayed?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

7 November 2009 at 5:47am

Great catch. I hadn't thought of that. In a recurring event, "end date" means something different than it does for a standard event. An end date for a standard event means that a given event spans multiple days, but for a recurring event, it's the date at which the event stops repeating.

I'll get in a patch asap.

Avatar
silk

Community Member, 18 Posts

8 November 2009 at 1:31am

Great! That would be great.

I tried to fix this until you check in your official update, but I did not manage to do it.
It seems most of
public function _Dates()
is meaningless, because everything is done within CalendarUtil::getDateString(). I not see how I can check if I have to deal with a repeating event, though. First I thougt CalendarDateTime's is_single attribute might do the job, but now I think I'm wrong because this is set for none of my events.

So I guess I will wait until you solve it.

Thank's a lot!

Avatar
redactuk

Community Member, 117 Posts

16 August 2011 at 11:42am

I know this is a really old post, but is this possible now?