#1140490 ksh93u+m: printf %T silently drops relative-date offset for "weeks"

Package:
ksh93u+m
Source:
ksh93u+m
Description:
AT&T KornShell
Submitter:
Anuradha Weeraman
Date:
2026-06-21 12:59:02 UTC
Severity:
normal
Tags:
#1140490#5
Date:
2026-06-21 12:57:21 UTC
From:
To:
printf's %T date parser ignores relative offsets given in weeks,
returning the unchanged anchor date with exit status 0. Days, months,
years and weekday names are unaffected.

$ ksh93 -c 'printf "%(%Y-%m-%d)T\n" "2025-01-01 + 14 days"'
2025-01-15 # Correct
$ ksh93 -c 'printf "%(%Y-%m-%d)T\n" "2025-01-01 + 2 weeks"'
2025-01-01 # Wrong: offset dropped

Cause: regression introduced in 93u+m/1.0.6, and affects every release
since.

Already fixed upstream, staged for the next release.

Downstream: Ubuntu LP#2130971 (the relative-week issue only)