Skip to content

Relative Date Pattern 'm9' #9798

@sylvestre

Description

@sylvestre

Rust (incorrect - wrong date calculation)

$  TZ=UTC cargo run -p uu_date -- -d m9 '+%F %T %Z'
  # Output: 2025-12-23 21:00:00 UTC

GNU (correct)

$  TZ=UTC /usr/bin/date -d m9 '+%F %T %Z'
  # Output: 2025-12-22 21:00:00 UTC

Found with a fuzzer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions