wip: refactor

This commit is contained in:
2024-12-17 18:51:06 +07:00
parent 377f169420
commit 0682612d42
27 changed files with 486 additions and 259 deletions

View File

@@ -41,7 +41,7 @@ pub fn ago(time: u64) -> String {
"now".to_owned()
} else if diff < 24 {
let duration = now.signed_duration_since(input_time);
format!("{} ago", duration.num_hours())
format!("{} hours ago", duration.num_hours())
} else {
input_time.format("%b %d").to_string()
}