Fixed the default days being shown being 366 instead of 365
parent
a748f78a94
commit
5f830049dd
|
|
@ -449,7 +449,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "git-heatmap"
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"chrono",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
|
|||
|
||||
[package]
|
||||
name = "git-heatmap"
|
||||
version = "1.4.0"
|
||||
version = "1.4.1"
|
||||
edition = "2024"
|
||||
authors = ["Wynd <wyndftw@proton.me>"]
|
||||
description = "A simple and customizable heatmap for git repos"
|
||||
|
|
|
|||
|
|
@ -62,6 +62,6 @@ pub struct CliArgs {
|
|||
}
|
||||
|
||||
fn get_since_date() -> String {
|
||||
let date = Local::now() - Duration::days(365);
|
||||
let date = Local::now() - Duration::days(364);
|
||||
date.format("%Y-%m-%d").to_string()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ pub struct Mailmap {
|
|||
entries: Vec<MapEntry>,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
struct MapEntry {
|
||||
new_name: Option<String>,
|
||||
|
|
@ -58,4 +59,4 @@ impl Mailmap {
|
|||
|
||||
author
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue