# Recurring date is showing wrong next date

**URL:** <https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852>\
**Category:** Bug\
**Created:** [December 20, 2020, 4:26pm UTC](https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852 "2020-12-20T16:26:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [December 22, 2020, 7:47pm UTC](https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852/2 "2020-12-22T19:47:20Z")

</div>

This seems oddly intentional from the code. It always seems to base the recurring date off the different between the _current_ date and today:

[https://github.com/discourse/discourse/blob/master/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6#L55](https://github.com/discourse/discourse/blob/master/plugins/discourse-local-dates/assets/javascripts/lib/local-date-builder.js.es6#L55)

I tried changing this in the code to be `localDate.datetime` and the output was correct in the browser but 4 tests failed. It seemed they were ensuring it works this way, so now I’m wondering if I’m missing something @j.jaffeux? Recurring should be after the date you entered not the current date right?

---

_[View the full topic](https://meta.discourse.org/t/recurring-date-is-showing-wrong-next-date/173852)._
