Package: ksh93u+m
Version: 1.0.7-1
Severity: normal
Tags: upstream fixed-upstream
Control: forwarded -1 https://github.com/ksh93/ksh/issues/915

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)

Reply via email to