# Wrong week number in ansible gather\_facts

**URL:** <https://forum.ansible.com/t/wrong-week-number-in-ansible-gather-facts/42209>\
**Category:** Get Help\
**Created:** [April 28, 2025, 5:31am UTC](https://forum.ansible.com/t/wrong-week-number-in-ansible-gather-facts/42209 "2025-04-28T05:31:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ildjarn](https://avatars.discourse-cdn.com/v4/letter/i/8491ac/32.png) [@ildjarn](https://forum.ansible.com/u/ildjarn)\
**Post date:** [April 28, 2025, 5:31am UTC](https://forum.ansible.com/t/wrong-week-number-in-ansible-gather-facts/42209/1 "2025-04-28T05:31:01Z")

</div>

`gather_facts: true` in playbook

The datetime info is:

```auto
    "ansible_date_time": {
      "year": "2025",
      "month": "04",
      "weekday": "Monday",
      "weekday_number": "1",
      "weeknumber": "17",
      "day": "28",
      "hour": "05",
      "minute": "26",
      "second": "21",
      "epoch": "1745817981",
      "epoch_int": "1745817981",
      "date": "2025-04-28",
      "time": "05:26:21",
      "iso8601_micro": "2025-04-28T05:26:21.207762Z",
      "iso8601": "2025-04-28T05:26:21Z",
      "iso8601_basic": "20250428T052621207762",
      "iso8601_basic_short": "20250428T052621",
      "tz": "UTC",
      "tz_dst": "UTC",
      "tz_offset": "+0000"
    },

```

According to Ansible, we’re living in week 17

`ncal -w` results in:

```auto
    April 2025
Su 6 13 20 27
Mo 7 14 21 28
Tu 1 8 15 22 29
We 2 9 16 23 30
Th 3 10 17 24
Fr 4 11 18 25
Sa 5 12 19 26
   14 15 16 17 18

```

So week 18. Outlook also says ‘week 18’.

Is this a bug, a known feature, or are all my other systems off by a week?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [April 28, 2025, 6:57am UTC](https://forum.ansible.com/t/wrong-week-number-in-ansible-gather-facts/42209/2 "2025-04-28T06:57:25Z")

</div>

There is not **the** week number. There are multiple different systems that compute a week number, see [Week - Wikipedia](https://en.wikipedia.org/wiki/Week_number#Numbering). Ansible uses a different system than your Outlook, apparently.

(See also [GitHub · Where software is built](https://github.com/ansible/ansible/issues/72008.))

---

<div class="post-metadata">

**Author:** ![wayt](https://avatars.discourse-cdn.com/v4/letter/w/3be4f8/32.png) [@wayt](https://forum.ansible.com/u/wayt)\
**Post date:** [April 28, 2025, 1:44pm UTC](https://forum.ansible.com/t/wrong-week-number-in-ansible-gather-facts/42209/3 "2025-04-28T13:44:40Z")

</div>

Helping @felixfontein out, the link you have seems to be slightly off. Try this [link](https://github.com/ansible/ansible/issues/72008#issuecomment-700874023)!
