为什么日历API不会创建复发的最后一天?

发布于 2025-02-08 18:46:07 字数 1028 浏览 0 评论 0 原文

当我尝试创建重复发生的事件时,并未创建复发的最后一天。 但是,只有当我早些时候工作时,我才能晚上3点提供启动时间。

例如:下面的这不会创建

start: { dateTime: '2022-07-13T03:04:00', timeZone: 'Europe/Kiev' },

它在日历中的外观(时间3:04 AM的不正确请求)

“它在日历中的外观(时间3:04

创建

start: { dateTime: '2022-07-13T03:00:00', timeZone: 'Europe/Kiev' },

在日历中的外观(时间3am工作请求)

start.datetime 到0-3am,这是+3

这不起作用的请求

{
  summary: 'Draft #0',
  creator: { displayName: 'Test' },
  start: { dateTime: '2022-07-13T03:04:00', timeZone: 'Europe/Kiev' },
  end: { dateTime: '2022-07-13T23:58:00', timeZone: 'Europe/Kiev' },
  recurrence: [
    'EXDATE;VALUE=DATE:20220713',
    'RRULE:FREQ=DAILY;UNTIL=20220719;BYDAY=MO,TU,WE,TH,FR,SA,SU'
  ]
}

一切都很好。

为了创建这一天,我该怎么办?

When I'm trying to create recurring event, the last day of recurrence is not being created.
However, it is only when I provide startDateTime later than 3AM, if earlier everything works.

For example: this below does not create

start: { dateTime: '2022-07-13T03:04:00', timeZone: 'Europe/Kiev' },

How it looks in calendar ( incorrect request with time 3:04AM )

How it looks in calendar ( incorrect request with time 3:04AM )

And this one creates

start: { dateTime: '2022-07-13T03:00:00', timeZone: 'Europe/Kiev' },

How it looks in calendar ( working request with time 3AM)

How it looks in calendar ( working request with time 3AM)
I think it is allocated to my timezone, which is just +3

This below is not working request

{
  summary: 'Draft #0',
  creator: { displayName: 'Test' },
  start: { dateTime: '2022-07-13T03:04:00', timeZone: 'Europe/Kiev' },
  end: { dateTime: '2022-07-13T23:58:00', timeZone: 'Europe/Kiev' },
  recurrence: [
    'EXDATE;VALUE=DATE:20220713',
    'RRULE:FREQ=DAILY;UNTIL=20220719;BYDAY=MO,TU,WE,TH,FR,SA,SU'
  ]
}

If we change in this request start.dateTime to 0-3AM everything is fine.

What shall I do in order to create this one last day?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魄砕の薆 2025-02-15 18:46:07

Google支持回答:

状态:不会修复(预期的行为)你好,

这种行为按预期关闭。

请注意,直到指示理想情况应该是
仅在此时间或时间巧合之前创建,
直到该事件的最后一次发生。不会创建任何事件
到达阈值后。

对于基辅,时区为UTC+0300,用于从03:00开始的事件
以前,经常性事件的最后一天确实会创建。为了
事件从0300开始,并未创建事件,因为
直到参数限制创建。配置直到时区
使用最后一个事件所需的开始时间。

要在20220719上进行活动,您可以配置直到
条款为直至= 20220719T030400Z

问候

Google Support Answered:

Status: Won't Fix (Intended Behavior) Hello,

This behavior is being closed as intended.

Please note that UNTIL instructs that ideally the events should be
created only before that time or if the times are coinciding, the
UNTIL is the last occurrence of that event. No event would be created
after the UNTIL threshold is reached.

For Kiev, the timezone is UTC+0300 For events which start at 03:00 or
before, the last day of the recurring event does get created. For
events which start after 0300, the event is NOT created since the
UNTIL parameter restricts the creation. Configure the UNTIL timezone
to use the last event's required start time.

To be able to make an event on 20220719, you can configure the UNTIL
clause as UNTIL=20220719T030400Z

Regards

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文