Subject: [PATCH v2 0/3] approxidate: tweak special date formats

From: Tuomas Ahola <[email-masked]>
Date: Tue, 12 May 2026 17:54:27 +0300

The approxidate system is an endless source of absurdities.  Let's make the
usual "eh, that's crazy, let's do better with this input" type of fix[1], and
tweak some sharp edge cases, including one noticed by Linus back in 2006[2].

After this series, "tea" and "noon" will work predictably with all kinds of
date formats (today, yesterday, last Friday, January 5th, one year ago
yesterday...) regardless of the current time of day.

Links:
  1. https://lore.kernel.org/git/[email-masked]/
  2. https://lore.kernel.org/git/[email-masked]/

Tuomas Ahola (3):
  t0006: add support for approxidate test date adjustment
  approxidate: make "specials" respect fixed day-of-month
  approxidate: use deferred mday adjustments for "specials"

 date.c          | 37 +++++++++++++++++++++++++++----------
 t/t0006-date.sh | 19 ++++++++++++++++++-
 2 files changed, 45 insertions(+), 11 deletions(-)

Intervall-diff mot v1:
1:  9bfff739fd < -:  ---------- approxidate: make "specials" respect fixed day-of-month
2:  1a4398e5a1 < -:  ---------- approxidate: overwrite tm_mday for `now` and `yesterday`
-:  ---------- > 1:  118f1825ac t0006: add support for approxidate test date adjustment
-:  ---------- > 2:  21c4858c47 approxidate: make "specials" respect fixed day-of-month
-:  ---------- > 3:  cf72403102 approxidate: use deferred mday adjustments for "specials"

base-commit: c44beea485f0f2feaf460e2ac87fdd5608d63cf0
-- 
2.30.2