Skip to content

bug: Incorrect pluralisation in created time output #709

@adityashekhawat1999

Description

@adityashekhawat1999

Description

The "Created Time" output in Harbor CLI does not correctly handle pluralisation of time units.
For example:

  • "2 hour ago" instead of "2 hours ago"
  • "4 day ago" instead of "4 days ago"
Image

Proposed Fix
Update the time formatting logic to conditionally pluralise time units (minute, hour, day) based on their value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions