Skip to content

Commit

Permalink
Use shorter date format for updated at
Browse files Browse the repository at this point in the history
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.)
  • Loading branch information
camelid committed Mar 14, 2021
1 parent 99a2007 commit ba39aa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/triage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

let yellow_line = Utc::now() - Duration::days(YELLOW_DAYS);
let red_line = Utc::now() - Duration::days(RED_DAYS);
Expand Down

0 comments on commit ba39aa4

Please sign in to comment.