Skip to content

Commit

Permalink
Fixed scope error resulting in incorrect year calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmgill committed Apr 9, 2024
1 parent 9938868 commit 0aef5c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate astro;
use astro::*;

use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc};
use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc, TimeZone};

const SEPTASECONDS_PER_SECOND: u64 = 10000000;
const SEPTASECONDS_PER_MICROSECOND: u64 = 10;
Expand Down Expand Up @@ -50,7 +50,7 @@ impl TimeStamp {
}

for y in year..9999 {
let year = y;
year = y;
let days_this_year = if TimeStamp::is_leap_year(year) {
366
} else {
Expand Down

0 comments on commit 0aef5c7

Please sign in to comment.