feat(github): show relative dates in pull requests

Pull request lists, timelines, commits and replies show how long ago
something happened ("just now", "8 hours ago", "yesterday", "3 days ago")
and the date after 30 days ("on Oct 12"). Hovering a timeline date shows
the full date and time. With pretty formatting off, the plain date and time
are shown.
Цей коміт міститься в:
l0ng-ai committed 2026-10-31 09:07:22 +08:00
1 джерело 2bc5e8d0c8
коміт 89475f4fed
8 files changed
+81 -51

No files matched your search

+2 -2
Переглянути файл
@@ -23,7 +23,7 @@ import {
import { useTx } from "@/platform/i18n";
import type { GHPullRequestCommit } from "../api/types";
import { GHOST_USER } from "../data/model";
import { prettyDateTime } from "../ui/prettyDate";
import { prettyDate } from "../ui/prettyDate";
import { commitsTitle, stepCommit } from "./model";
import styles from "./Details.module.css";
@@ -34,7 +34,7 @@ function presentation(c: GHPullRequestCommit) {
title: c.commit.messageHeadline,
description: c.commit.messageBody,
author: user.name || user.login,
date: prettyDateTime(c.commit.committedDate),
date: prettyDate(c.commit.committedDate),
};
}