完整日历的规则中未包含EXDATE [英] Is EXDATE not included in rrule for Full Calendar

查看:129
本文介绍了完整日历的规则中未包含EXDATE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个重复的日历活动,该活动发生在每个月的第4个星期五,我想排除1个星期五的活动.我已经尝试过EXDATE,但出现错误

I have a recurring calendar event that happens on the 4th Friday of every month and I want to exclude 1 Friday event. I've tried EXDATE but I'm getting an error

传递JSON失败

Failure passing JSON

没有EXDATE的情况下,效果很好.

Without EXDATE the rrule works fine.

以下是我在完整日历"中用于生成事件的详细信息

Here are the details that I'm using in Full Calendar to produce the event

{
    start: "2019-07-06T09:00:00+10:00",
    end: "2019-07-06T15:00:00+10:00",
    rrule: "FREQ=WEEKLY;DTSTART=20190607T090000;EXDATE=20190705T090000;INTERVAL=4;BYDAY=FR",
    title: "Weed Spraying",
    description: "June, Harry, Pat, George, Valda, Helen, Karen, Ken",
    color: "red",
    url: "./?action=detail_view&id=22",
    duration: "06:00"
}

推荐答案

可以添加例外.您只需要正确设置RRule字符串的格式即可:

It is possible to add exceptions. You just need to format the RRule string correct:

DTSTART:20190610T103000\nRRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20190801\nEXDATE:20190618T103000Z\nEXDATE:20190619T103000

观看此代码沙箱进行演示

这篇关于完整日历的规则中未包含EXDATE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆