We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a7a254 commit f70318bCopy full SHA for f70318b
src/infra/time.rs
@@ -38,7 +38,7 @@ where
38
let diff = current_time.clone() - time_to_fmt.clone();
39
match diff {
40
// In the future
41
- _ if diff.num_milliseconds() < 0 => time_to_fmt.format("%Y-%m-%d %H:%M").to_string(),
+ _ if diff.num_milliseconds() < 0 => time_to_fmt.format("%y-%-m-%-d %-H:%M").to_string(),
42
// Same year...
43
_ if time_to_fmt.year() != current_time.year() => {
44
time_to_fmt.format("%Y-%m-%d").to_string()
0 commit comments