# Bug in dojo/date

**URL:** <https://discourse.dojo.io/t/bug-in-dojo-date/515>\
**Category:** Dojo 1.x users\
**Created:** [August 17, 2020, 3:36pm UTC](https://discourse.dojo.io/t/bug-in-dojo-date/515 "2020-08-17T15:36:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jchujeux](https://avatars.discourse-cdn.com/v4/letter/j/c4cdca/32.png) [@jchujeux](https://discourse.dojo.io/u/jchujeux)\
**Post date:** [August 17, 2020, 3:36pm UTC](https://discourse.dojo.io/t/bug-in-dojo-date/515/1 "2020-08-17T15:36:56Z")

</div>

I believe there is a bug in dojo/date, at line 161. It is: `var trgt = (strt + days)` , it should be: `var trgt = (strt + days) % 7;`.  
(came out as I was answering a question on stackoverflow (see [here](https://stackoverflow.com/questions/63299286/inconsistent-behavior-of-dojo-date-method)).

In case there would be a new release of dojo 1.x 🙂
