FullCalendar结束日期不包括在内 [英] FullCalendar end date is not inclusive

查看:161
本文介绍了FullCalendar结束日期不包括在内的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用FullCalendar Beta2,并将AllDay标志设置为True。
日历仍将结束日期视为独占!
如何让结束日期包含在内?

I'm using FullCalendar Beta2, and I set the AllDay flag to True. The calendar still treats End Date as exclusive! How can I make the End date inclusive?

非常感谢。

Many thanks.

推荐答案

@ZooZ -​​ 根据Beta 2升级文档,结束日期现已排除:

@ZooZ - According to the Beta 2 Upgrade docs, the end date is now exclusive:


所有结束日期均为现在独家。例如,如果全天事件在星期四结束
,则结束日期将是星期五的00:00:00。 1.x
版本在这方面有一些奇怪的规则。现在应该是
更简单了,现在独占的结束日期在整个API中始终使用
。此外,此行为与其他API和格式(例如iCalendar)的
更加一致。

all end dates are now exclusive. For example, if an all-day event ends on a Thursday, the end date will be 00:00:00 on Friday. The 1.x versions had some strange rules in regards to this. Things should be much simpler now that exclusive end dates are used consistently throughout the API. In addition, this behavior is more consistent with other API's and formats, such as iCalendar.

参考: http://arshaw.com/fullcalendar/wiki/Upgrading-to-2/

我只需在你的结束日期计算中添加一个以解决此问题:)

I would just add one to your end date calculation to work around this :)

这篇关于FullCalendar结束日期不包括在内的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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