Skip to content

Default to ISO 8601 date format in UI and add "June 26, 2016" as tooltip #5503

@ypid

Description

@ypid

Environment

  • Python version: 3.7.3
  • NetBox version: 2.10.1

Proposed Functionality

The current approach seems to be to use ISO 8601

SHORT_DATE_FORMAT = 'Y-m-d'          # 2016-06-26

where the logical order matters, for example in the changelog view that is sorted by time. For "free text" dates,

DATE_FORMAT = 'N j, Y'               # June 26, 2016

is used. I am proposing to use SHORT_DATE_FORMAT everywhere in the UI except in tooltips. And then augment dates as tooltip in DATE_FORMAT. This is because ISO 8601 is the standard for dates in written form. If the user ever needs to communicate a date via voice, they are expected to translate 2016-06-26 in their head or peek in the tooltip and say "June 26, 2016".

@jeremystretch commented on ISO 8601 in #1412 (comment) already so I assume there is some background to the current default. I still would like to discuss this.

Use Case

Consistency.

Database Changes

No.

External Dependencies

No.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions