# Waarom werkt herhaling niet goed op mijn Discourse-instantie?

**URL:** https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218
**Category:** Feature
**Created:** [5 januari 2021 om 23:17 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218 "2021-01-05T23:17:44Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [5 januari 2021 om 23:17 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/1 "2021-01-05T23:17:44Z")

</div>

Okay, so, I can insert a time-date thing for tomorrow afternoon:

```
[date=2021-01-06 time=14:00:00 timezone="America/New_York"]

```

2021-01-06T19:00:00Z

and that works very nicely, currently showing me:

![image](https://global.discourse-cdn.com/meta/original/3X/2/b/2bfd075cdfbfba248601699b14ea7330f83488db.png)

Then I notice the “recurring” option in the advanced part of the dialog, and this happens to be an event that repeats every two weeks, so I do:

```
[date=2021-01-06 time=14:00:00 timezone="America/New_York" recurring="2.weeks"]

```

2021-01-06T19:00:00Z

which, on _this_ server gives me tomorrow as expected (right now, same “Tomorrow 2:00 PM”) but the same line on _my_ hosted discourse instance gives me:

![image](https://global.discourse-cdn.com/meta/original/3X/b/5/b5197a9a3ce878fc68e588cc6160cf0311859c9d.png)

Which is odd! Why doesn’t this work?

And it gets weirder. If I use

```
[date=2021-01-12 time=14:00:00 timezone="America/New_York" recurring="2.weeks"]

```

I get “January 26, 2021 2:00 PM” — two weeks later — but if I add a day:

```
[date=2021-01-13 time=14:00:00 timezone="America/New_York" recurring="2.weeks"]

```

I get “January 31, 2021 2:00 PM”, and it seems like the error compounds from there. If I give it August 1st, November 25th comes back! If I give 3000-01-01, I get July 14, 3489.

What’s going on here?

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [5 januari 2021 om 23:20 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/2 "2021-01-05T23:20:50Z")

</div>

Oh, and for bonus weirdness, hourly repeats don’t work either on my site or here. If I do:

```
[date=2021-01-05 time=14:00:00 timezone="America/New_York" recurring="1.hours"]
[date=2021-01-05 time=14:00:00 timezone="America/New_York" recurring="2.hours"]
[date=2021-01-05 time=14:00:00 timezone="America/New_York" recurring="3.hours"]
[date=2021-01-05 time=14:00:00 timezone="America/New_York" recurring="4.hours"]
[date=2021-01-05 time=14:00:00 timezone="America/New_York" recurring="5.hours"]

```

Like this:

2021-01-05T19:00:00Z  
2021-01-05T19:00:00Z  
2021-01-05T19:00:00Z  
2021-01-05T19:00:00Z  
2021-01-05T19:00:00Z

what I actually get is this (image):

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/6/f6cabf65648920b72848a08a3ff8b2a30297ba2c.png)

I’m not sure less-than-a-day repeats are actually useful, but since the dialog says they’re an option, I’d expect them to work.

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [5 januari 2021 om 23:41 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/3 "2021-01-05T23:41:19Z")

</div>

Already reported and fixed in [Recurring date is showing wrong next date](https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852), which is why it’s working here on meta. If you update to the latest version I’m sure the issue will be fixed on your instance as well. 🙂

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [6 januari 2021 om 01:07 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/4 "2021-01-06T01:07:37Z")

</div>

Hmm, the hour repetitions are definitely still bugged, though.

> [@mattdm](#):
>
> Today 6:00 PM  
> Today 4:00 PM  
> Today 4:00 PM  
> Today 4:30 PM  
> Today 5:12 PM

---

<div class="post-metadata">

### Author: ![mattdm](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattdm/32/216484_2.png) [@mattdm](https://meta.discourse.org/u/mattdm)
#### Post date: [6 januari 2021 om 14:11 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/5 "2021-01-06T14:11:18Z")

</div>

> [@seanblue](#):
>
> Already reported and fixed in [Recurring date is showing wrong next date](https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852), which is why it’s working here on meta. If you update to the latest version I’m sure the issue will be fixed on your instance as well.

Is it normal for updates to land on meta here and then be rolled out to hosted instances later?

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [6 januari 2021 om 15:47 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/6 "2021-01-06T15:47:15Z")

</div>

> [@mattdm](#):
>
> Is it normal for updates to land on meta here and then be rolled out to hosted instances later?

Yeah, but I have no idea how long the typical delay is.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 januari 2021 om 17:32 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/7 "2021-01-06T17:32:30Z")

</div>

Is @j.jaffeux aware of the above?

---

<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: [6 januari 2021 om 20:56 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/8 "2021-01-06T20:56:20Z")

</div>

No I wasnt, thanks, will look first thing tomorrow morning.

---

<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: [7 januari 2021 om 11:09 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/10 "2021-01-07T11:09:59Z")

</div>

Awaiting review but that should fix it:

[https://github.com/discourse/discourse/pull/11657](https://github.com/discourse/discourse/pull/11657)

---

<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: [9 januari 2021 om 11:10 UTC](https://meta.discourse.org/t/why-isnt-recurrance-working-right-on-my-discourse-instance/175218/11 "2021-01-09T11:10:10Z")

</div>

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