# Document errors

**URL:** <https://discourse.cakephp.org/t/document-errors/12726>\
**Category:** Uncategorized\
**Created:** [October 15, 2025, 9:36am UTC](https://discourse.cakephp.org/t/document-errors/12726 "2025-10-15T09:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phillipaldridge](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@phillipaldridge](https://discourse.cakephp.org/u/phillipaldridge)\
**Post date:** [October 15, 2025, 9:36am UTC](https://discourse.cakephp.org/t/document-errors/12726/1 "2025-10-15T09:36:05Z")

</div>

Hi, in the documents [book.cakephp.org](http://book.cakephp.org) I think there is an error on the page Date& Time

> **[Date & Time - 5.x](https://book.cakephp.org/5/en/core-libraries/time.html)**
>
> Time class helps you format time and test time.

```auto
$newTime = $time->subDays(5)
    ->addHours(-2)
    ->addMonth(1);

```

The addMonth method should be addMonths

---

<div class="post-metadata">

**Author:** ![dereuromark](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/dereuromark/32/37_2.png) [@dereuromark](https://discourse.cakephp.org/u/dereuromark)\
**Post date:** [October 15, 2025, 11:38am UTC](https://discourse.cakephp.org/t/document-errors/12726/2 "2025-10-15T11:38:48Z")

</div>

Fixed in [Fix chronos mistake. · cakephp/docs@77fa227 · GitHub](https://github.com/cakephp/docs/commit/77fa227f29e2d77a2801e5fe55dc9ba1b0c2b069)

Tip:  
You can open a ticket directly on the docs repo, or better yet even provide a quick PR with the fix (just click edit and then confirm).
