Skip to content

bug(date): -s option rejects military times that end with j #12895

@HackingRepo

Description

@HackingRepo

Hi, uutils mainteners

the -s set date option, rejects miliatry times that end with j as we confirmed

relunsec@relunsec:~/software/coreutils/target/debug$ ./date -s "J" 
date: invalid date 'J'
relunsec@relunsec:~/software/coreutils/target/debug$ gnudate -s "J" 
gnudate: cannot set date: Operation not permitted
Mon Jun 15 12:00:00 AM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ ./date -s "3j" 
date: invalid date '3j'
relunsec@relunsec:~/software/coreutils/target/debug$ gnudate -s "3j" 
gnudate: cannot set date: Operation not permitted
Mon Jun 15 03:00:00 AM EDT 2026
relunsec@relunsec:~/software/coreutils/target/debug$ 

it needs be fixed too

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions