Skip to content

Commit ba39aa4

Browse files
committed
Use shorter date format for updated at
Before: Wed, 27 May 2020 17:57:14 +0000 After: 2020-05-27 (Note that I haven't tested it, but that's what it should look like.)
1 parent 99a2007 commit ba39aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/triage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub async fn pulls(
5656
let assignee = base_pull.assignee.map_or("".to_string(), |v| v.login);
5757
let updated_at = base_pull
5858
.updated_at
59-
.map_or("".to_string(), |v| v.to_rfc2822());
59+
.map_or("".to_string(), |v| v.format("%Y-%m-%d"));
6060

6161
let yellow_line = Utc::now() - Duration::days(YELLOW_DAYS);
6262
let red_line = Utc::now() - Duration::days(RED_DAYS);

0 commit comments

Comments
 (0)