
On 2024-01-30 16:30, mwilson--- via talk wrote:
Discovered when I ran my script to run pcal and refresh my next-month calendar, and got March.
mwilson@ningabel:~$ date Tue 30 Jan 2024 04:23:27 PM EST mwilson@ningabel:~$ date -d'this month' +%m 01 mwilson@ningabel:~$ date -d'next month' +%m 03 mwilson@ningabel:~$ which date /usr/bin/date mwilson@ningabel:~$ date --version date (GNU coreutils) 9.1 Copyright (C) 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie. mwilson@ningabel:~$
Running Debian 12.2.0-14 patched up to last Friday. I suppose that in a couple of days next month really will be March, and the bug will be gone.
--- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
I think its a generic error code since: $ date -d'month' +%m $ date -d'month 1' +%m $ date -d'month 12' +%m $ date -d'month 123' +%m all yield 03 Looks like its m=$((`date +%m` + 1)) for you! -- Michael Galea