bug#63784: date --date "1 month ago" +%Y-%m does not work as expected on day 31

2023-05-29 Thread Jelle de Jong
Hello everybody, I been hitting an issue for a while now that date commands return the wrong month on day 31 of a month and my automations stops working on correctly on these days. root@sydney:~# date Wed Aug 31 22:09:04 CEST 2022 root@sydney:~# date --date "1 month ago" +%Y-%m 2022-07 root@

bug#63784: date --date "1 month ago" +%Y-%m does not work as expected on day 31

2023-05-29 Thread Pádraig Brady
On 29/05/2023 12:55, Jelle de Jong wrote: Hello everybody, I been hitting an issue for a while now that date commands return the wrong month on day 31 of a month and my automations stops working on correctly on these days. root@sydney:~# date Wed Aug 31 22:09:04 CEST 2022 root@sydney:~# date -