# Invalid date showing in Right Sidebar Blocks component for "upcoming events" panel on Safari

**URL:** https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617
**Category:** Bug
**Tags:** events, right-sidebar-blocks, fixed
**Created:** [June 25, 2025, 9:34am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617 "2025-06-25T09:34:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 9:34am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/1 "2025-06-25T09:34:29Z")

</div>

There appears to be a bug in the Right Sidebar Blocks component on Safari (desktop and mobile), where it displays “invalid date” in the “upcoming events” panel on the right. It works fine in Edge, Chrome and Firefox:

![image](https://global.discourse-cdn.com/meta/original/4X/e/a/4/ea49d89b7a763089459bc3515b7ceca271fe88b2.png)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 25, 2025, 9:38am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/2 "2025-06-25T09:38:07Z")

</div>

I can’t repro this on safari. Does it work on `/upcoming-events` route?

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 10:46am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/4 "2025-06-25T10:46:59Z")

</div>

Thanks for helping me out with this - much appreciated!

Maybe I am doing something wrong, but I tried adding upcoming-events (and also tried /upcoming-events) but it’s not displaying the right-hand panel on that view? It’s showing in the categories I have specified though:

 ![This screenshot displays a user interface with several rectangular buttons labelled with options such as 'Show in routes', 'upcoming-events', and various news categories. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/e/1/1e1238f8690999c36dae2655cb33c3be6f4a6a09.png)

Upcoming events view:

 ![A dark-themed calendar display showing June 2025 with upcoming events and navigation options. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/b/2/1b27963ee73b45f887572982fca2d89dc2358d73.png)

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 10:50am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/5 "2025-06-25T10:50:45Z")

</div>

Looks like a problem with moment on Safari?

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/a/e8a03437a25ef2fa8a9409e28961bda5a3c22668.png)

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 11:11am UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/6 "2025-06-25T11:11:16Z")

</div>

It appears to be related to the specific event, as another event I just created displays fine. Will try to narrow it down..

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 1:55pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/7 "2025-06-25T13:55:45Z")

</div>

OK - this is really odd.

I created a test event - and it displayed fine. Then I changed the date of this event to match the one that wasn’t displaying - and it also had the same problem - so it appears to be related to the date of the event.

The event in question runs from 3rd Feb 2026 to 5th Feb 2026. If I change it to the previous or following week it displays fine!

Then I tried extending the end date - and got this:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/4/5/745be4bf439dc206bb818a142f931f34e0d6e454.png)

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 2:08pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/8 "2025-06-25T14:08:31Z")

</div>

It appears to display fine in the Upcoming Events route?

 ![A digital calendar view displays a week in February 2026, listing several 'all-day' events including 'ISE Show 2026' and 'Test event 2', with options to view by month, week, or list. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/2/b/e2b64d9a01ee8d0ef77919a1b10aeb88c4391a71.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 25, 2025, 3:22pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/9 "2025-06-25T15:22:26Z")

</div>

FWIW there’s another report of this in the plugin topic as well:

> [@Discourse Calendar and Events](https://meta.discourse.org/t/discourse-calendar-and-event/97376/515):
>
> Hi all! I’ve installed the Right Sidebar Blocks plugin to display upcoming events in the right sidebar using the upcoming-events-list block. However, after creating an event, I keep getting an “Invalid date” error in the upcoming events list. Has anyone encountered this before? Any idea what I might be doing wrong? Thanks a lot in advance for your feedback and support!

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 4:43pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/10 "2025-06-25T16:43:56Z")

</div>

Any ideas for a workaround?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 25, 2025, 5:31pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/11 "2025-06-25T17:31:28Z")

</div>

I don’t know of a workaround, but I can repro using an event date on the single digits of a month (eg 3rd July 2025). This marries up with the wonky ones you and @mpaulhac have given as examples.

 ![A screenshot depicts a family forum website interface, showing topics, replies, and upcoming events with a prominent 'New Topic' button. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/b/4/5b42762169d5a29cc96c1d8ad7780af71056f2f6.jpeg)

From the look of the error in your screenshot above it seems to be dropping a ‘0’ in the single digit date (ie 2026-02-3) for some reason.

---

<div class="post-metadata">

### Author: ![Neil\_Evans2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans2/32/492791_2.png) [@Neil\_Evans2](https://meta.discourse.org/u/Neil_Evans2)
#### Post date: [June 25, 2025, 5:51pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/12 "2025-06-25T17:51:38Z")

</div>

Thanks for the update - much appreciated! Hopefully a simple fix?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 25, 2025, 8:08pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/13 "2025-06-25T20:08:28Z")

</div>

I can’t repro even with single digit, but I don’t understand why you don’t just define your date correctly?

Can you share the raw of your post (the markdown) where this event is defined please?

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 25, 2025, 8:14pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/14 "2025-06-25T20:14:47Z")

</div>

> [@j.jaffeux](#):
>
> I don’t understand why you don’t just define your date correctly?

I’m just using the Create Event option in the circle-with-a-plus menu. Nothing manual. 🤷

```plaintext

[event start="2025-07-03 18:20" status="public" timezone="Europe/London" allowedGroups="trust_level_0"]
[/event]

```

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 25, 2025, 8:15pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/15 "2025-06-25T20:15:17Z")

</div>

```plaintext
[event start="2025-07-03 18:20" status="public" timezone="Europe/London" allowedGroups="trust_level_0"]
[/event]

```

There’s no single digit here, so what is the issue?

With this raw:

 ![Screenshot 2025-06-25 at 22.15.54](https://global.discourse-cdn.com/meta/original/4X/3/d/4/3d407f75b6a76eb3b2a958fab6f76bde9c45aac2.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 25, 2025, 8:27pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/16 "2025-06-25T20:27:53Z")

</div>

I don’t know what to tell you? 🤷

Something is happening to the date in that calendar graphic on the left that safari doesn’t like.

 ![A mobile phone screen displays a calendar app with an upcoming event marked as having an invalid date, alongside a portrait of a man with a long beard. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/b/4/0b4a6fe4e9aebf4ada3f47c496e942200b22e520.jpeg)

The error from the [post higher up](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/5) references a date with a 0 missing:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/a/e8a03437a25ef2fa8a9409e28961bda5a3c22668.png)

That’s the best I got.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 25, 2025, 8:29pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/17 "2025-06-25T20:29:28Z")

</div>

I should have enough to fix, even blindly, will look thanks.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 25, 2025, 8:45pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/18 "2025-06-25T20:45:39Z")

</div>

Ok that should fix it:

[https://github.com/discourse/discourse-calendar/pull/756](https://github.com/discourse/discourse-calendar/pull/756)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 25, 2025, 9:24pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/19 "2025-06-25T21:24:50Z")

</div>

I’ve just updated and it works for me. 👍

---

<div class="post-metadata">

### Author: ![Neil\_Evans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil_evans/32/511055_2.png) [@Neil\_Evans](https://meta.discourse.org/u/Neil_Evans)
#### Post date: [June 25, 2025, 9:39pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/20 "2025-06-25T21:39:50Z")

</div>

Works for me too! thanks so much for the fast response!

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [June 28, 2025, 9:40pm UTC](https://meta.discourse.org/t/invalid-date-showing-in-right-sidebar-blocks-component-for-upcoming-events-panel-on-safari/371617/21 "2025-06-28T21:40:07Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
