날짜 범위가 잘못되었습니다

안녕하세요, 저는 Discourse 2025.11.0 버전을 사용 중이며 캘린더 페이지네이션에 문제가 있는 것 같습니다:

두 개의 이벤트를 생성했습니다:

  • 2025-08-27T14:00:00.000+02:00부터 2025-08-27T15:00:00.000+02:00까지
  • 2025-11-29T12:00:00.000+01:00부터 2025-11-29T13:00:00.000+01:00까지

캘린더에서 현재 월(/upcoming-events/month/2025/11/1)을 표시할 때, API 호출이 올바른 before/after 날짜와 함께 이루어지는 것을 볼 수 있습니다:
/discourse-post-event/events?after=2025-10-27T00%3A00%3A00%2B01%3A00&before=2025-12-08T00%3A00%3A00%2B01%3A00&attending_user=.

그러나 첫 번째 이벤트가 범위 밖에 있음에도 불구하고 두 이벤트가 모두 반환됩니다.

그리고 2025년 8월을 표시하도록 월을 변경하면 이벤트가 반환되지 않습니다.

2개의 좋아요

Just tried locally and I can’t reproduce :thinking:

Any chances you could detail your steps?

1개의 좋아요

Hi @zogstrip !

I’m redoing it after clearing all my dev environment (data and tmp), and could not reproduce it either. That’s weird. It may come from invalid data I had earlier.

Sorry for the issue.

But yes, for the steps, I “only” created two events with different dates, via the “new topic” form.

No worries at all.

I’ll close this one then.

Feel free to ping me if you figure out reproduction steps :+1:

Well, I got the steps !

  1. Create an event for today (I don’t think the date is relevant)
  2. Edit the post and change the date to the previous month (in the post editor, not the event form, nor the “Edit this event” button from the event itself)
  3. Do it again (event should be in october now)
  4. Move to october : no event in the API response
  5. Move back to december: the event is here (but not displayed as the date don’t match)

Edit: I changed the dates via the “Edit event” button from the event details, to september, and now it is returned on the API call for november

I’m afraid I’m still not able to reproduce. Whenever I edit the post to change the month in the markdown, the event shows up correctly in the “upcoming events” calendar.

I don’t know if that helps, but I recorded the steps.

I cannot attach the video to the post; the link is valid until 2026/02/01

1개의 좋아요

I’ll see tomorrow if I can reproduce this in a RSpec test

Thanks for the video, I was finally able to reproduce locally :raising_hands:

It was quite subtle, but here’s the fix.

https://github.com/discourse/discourse/pull/36481

3개의 좋아요

Well done!

Thank you for looking at it!

1개의 좋아요