Skip to content

Disable relative dates past a certain age (1 year?) #10067

Closed

Description

@fregante

Description

This was asked before and we rejected it because "it doesn't really matter if it's 12 or 13 months" but at the same time... maybe it does matter sometimes? It's worth looking into this.

Example URLs

GitHub already shows real dates in some places like https://github.com/refined-github/refined-github/issues?q=%20is%3Aissue%20state%3Aclosed%20sort%3Aupdated-asc So we need to decide where this feature applies (absolute-time), for example on the repo home.

Activity

  1. added
    small
    and removed on Sep 19, 2026
  2. fregante commented on Sep 19, 2026

    @fregante
    MemberAuthor

    AI PRs NOT WELCOME, screenshots are mandatory.


    Docs at https://github.com/github/relative-time-element, we just need to:

    1. observe relative-time elements
    2. remove tense attribute
    3. add prefix="" attribute
    4. add tense="past" attribute
    5. add threshold="P6M" attribute (after 6 months)

    It's not clear while all of this is required on this view but it's "the default" for the same element on issue lists.

    For now it should work on isRepoTree. Other pages like isRepoCommitList already show absolute dates after a certain cutoff.

  3. ajitzero commented on Oct 18, 2026

    @ajitzero

    Hi, was this intended to be enabled by default? I've disabled it in my case since I prefer relative dates, but this feels inconsistent enough to be an opt-in feature.

    Some potentially off-topic thoughts:

    Regarding relative time being confusing, I wrote a personal user script to add a click handler on the date to copy the actual timestamp to clipboard. This way, I still see relative time as a subjective approximation of time (what I care about), and still get to copy the exact time for whoever needs it (usually trackers/managers). This would be different feature for whoever needs it, since the absolute time was always available on hover.

  4. fregante commented on Oct 18, 2026

    @fregante
    MemberAuthor

    Other pages like isRepoCommitList already show absolute dates after a certain cutoff.

    This is how GitHub already works, so this feature is only making the site more consistent.

    Also yes, all features are enabled by default and most can be disabled with a click.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions