Discourse Event time tags disappear sometimes + event box trouble

AI-generated summary

icaria36 reports inconsistent behavior with Discourse Event time tags and event box synchronization. While relative time tags (visible in topic lists) usually appear, they sometimes vanish even when the event box and calendar remain intact — and editing posts or rebuilding HTML doesn’t always fix it. In some cases, the event box displays incorrect data despite correct source text, suggesting a sync bug. Faizaan Gagan suspects timezone issues and asks icaria36 to check their browser’s detected timezone via moment.tz.guess(), which returns ‘Europe/Berlin’. Further examples show events set to ‘Asia/Dubai’ failing to show time tags or appear in the calendar, reinforcing the suspicion of timezone or rendering bugs. The issue persists across different post types, including non-Wiki posts, and affects both display and data integrity. icaria36 provides screenshots and links to affected topics, highlighting the inconsistency and lack of reliable recovery methods.

There is a conference happening right now and we have several topics using the Discourse Event features – see https://forum.movement-strategy.org/c/general/cee-meeting/33.

The relative time tags added to the topic titles are great! But they are a bit unreliable. Most of the times they appear, but not always. I think editing the post randomly helps trigger something, but posts that had the tag can lose it later, even if the event box is there and the event appears in the calendar. Any ideas about what might be causing this problem?

EDIT:

Possible causes:

  • Setting start date/time only, no end date/time.
  • Editing the first post
  • Editing the event
  • Combination with Wiki post / Shared Edits too fragile?

In fact, somehow I managed to get the source text and the event box out of sync, no matter how hard I try to edit the event, the post, or I rebuild HTML. Now the event box information is wrong even when the source text is correct.

https://forum.movement-strategy.org/t/cee-meeting-introduction-to-cee-hub/1965

EDIT:

Another post missing a time tag in the title, where the event box and the source text are out of sync and Rebuild HTML does not fix the problem. In this case, there is no Wiki / Shared Edit post involved…

Clicking the three dots and Edit event shows the (wrong) data shown in the event box, not the (correct) data in the source text:

3 Likes

Just making sure, by relative time tags you mean the one on the topic list item right?


Regarding the event data issue, I think it probably has to do with the timezone. Can you open the js console on the browser and type moment.tz.guess() and let me know the result?

Yes! Sorry, couldn’t find a better name for it. :slight_smile:

I’ll check the console next time I see this problem.

1 Like

There is an upcoming conference and event topics are being created here. Right now, there are 4 events all set to timezone “Asia/Dubai”, and of them…

  • One and two don’t have the relative time tag.
  • Of these two, one doesn’t doesn’t appear in the calendar.

moment.tz.guess()
‘Europe/Berlin’