Fix #378 — formatting of dates/times

This commit is contained in:
spikecodes 2021-12-29 12:48:57 -08:00
parent 0708fdfb37
commit f1b3749cf0
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
4 changed files with 5 additions and 5 deletions

View file

@ -94,7 +94,7 @@ async fn user(name: &str) -> Result<User, String> {
title: esc!(about("title")),
icon: format_url(&about("icon_img")),
karma: res["data"]["total_karma"].as_i64().unwrap_or(0),
created: created.format(format_description!("%b %d '%y")).unwrap_or_default(),
created: created.format(format_description!("[month repr:short] [day] '[year repr:last_two]")).unwrap_or_default(),
banner: esc!(about("banner_img")),
description: about("public_description"),
}