From 7b4e7e0b87ef70f2f63581cd9e998f81853239e7 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sun, 14 Mar 2021 14:55:29 -0700 Subject: [PATCH] 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.) --- src/triage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/triage.rs b/src/triage.rs index 456be5a0..0e5b9ed6 100644 --- a/src/triage.rs +++ b/src/triage.rs @@ -56,7 +56,7 @@ pub async fn pulls( let assignee = base_pull.assignee.map_or("".to_string(), |v| v.login); let updated_at = base_pull .updated_at - .map_or("".to_string(), |v| v.to_rfc2822()); + .map_or("".to_string(), |v| v.format("%Y-%m-%d").to_string()); let yellow_line = Utc::now() - Duration::days(YELLOW_DAYS); let red_line = Utc::now() - Duration::days(RED_DAYS);