Format author and committer time like git

This commit is contained in:
Joscha 2023-08-05 23:47:21 +02:00
parent 128384bcf7
commit b83d908d4b
4 changed files with 12 additions and 3 deletions

View file

@ -81,9 +81,9 @@ pub async fn get(
summary: commit.message()?.summary().to_string(),
message: commit.message_raw_sloppy().to_string(),
author: repo::format_actor(author_info.actor())?,
author_date: author_info.time.to_bstring().to_string(),
author_date: repo::format_time(author_info.time),
commit: repo::format_actor(committer_info.actor())?,
commit_date: committer_info.time.to_bstring().to_string(),
commit_date: repo::format_time(committer_info.time),
parents,
children,
})